Comptia (XK0-004) Exam Questions And Answers page 45
A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login.
Which of the following is the BEST action the user can take to ensure the command is always available?
Which of the following is the BEST action the user can take to ensure the command is always available?
echo "alias dir=ls -la" >> /etc/skel
echo "alias dir=ls -la" >> ~/.profile
echo "alias dir=ls -la" > ~/.bashrc
Command Line Interface
Shells, Scripting, and Data Management
What is the purpose of the Gap Analysis technique?
Single Choice
Which of the following best describes the purpose of the Gap Analysis technique?
To determine service levels for the architecture
To establish quality metrics for the architecture
To identify commercial building blocks to be purchased
To identify missing functions
To validate nonfunctional requirements
System Configuration and Management
Scripting and Automation
A Linux administrator needs the tech account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?
Which of the following commands would BEST meet this goal?
$ su tech c /bin/bash
# usermod aG wheel tech
# sudo i tech
# groupadd u tech g root
Command Line Interface
Shells, Scripting, and Data Management
Which phase of the TOGAF ADM is the first phase directly concerned with the planning for the implementation of the target architecture(s)?
Phase G
Phase D
Phase E
Phase F
Phase H
Essential System Services
Networking Fundamentals
A systems administrator is receiving errors while trying to install a popular virtualization software. The software specifications state the processor needs to support virtualization with Intel instructions. Additional requirements state the processor must accelerate encryption/decryption and use hyperthreading. Given the following output about the processor:
fpu ume depse tsu msr pae mce cx8 apic sep mtrr pae mca cmov pat pse36 cflusm mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm fsgsbase
Which of the following is the MOST likely reason for the errors?
fpu ume depse tsu msr pae mce cx8 apic sep mtrr pae mca cmov pat pse36 cflusm mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm fsgsbase
Which of the following is the MOST likely reason for the errors?
The processor supports AMD instructions rather than Intel.
The processor cannot accelerate decryption.
The processor does not support hyperthreading.
The processor is running inside a virtual machine.
Command Line Interface
Essential System Services
A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the administrator issue to ensure the web server starts at boot time?
systemctl service on
systemctl enable .service
systemctl service enable
systemctl on .service
Command Line Interface
Essential System Services
A systems administrator installed Git on a new workstation and wants to ensure all Git projects on this machine are initialized with the same username and email address.
Which of the following should the administrator use to meet this goal? (Choose two.)
Which of the following should the administrator use to meet this goal? (Choose two.)
git config --global user.name = James Doe
echo email.addr = [email protected] >> .git/.gitconfig
echo username = James Doe >> .git/.gitconfig
git config username = James Doe
git config --global user.email = [email protected]
git config email.addr = [email protected]
Shells, Scripting, and Data Management
Administrative Tasks
A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver support. The administrator tested the device installation and access, but the user cannot access the serial port. Each time the user attempts to access the device, an error log is created that shows the user does not have permission to use the serial port. Which of the following will add a user to the group that has serial port capabilities?
usermod a G serialport $USER
usermod a G modem $USER
usermod a G dialout $USER
usermod a G root $USER
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when the door is closed.
Which of the following describes the Linux device to which this switch is attached?
Which of the following describes the Linux device to which this switch is attached?
/dev/tty0
/dev/port
/dev/gpio
/dev/sg0
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Networking Fundamentals
A four-drive Linux NAS has been improperly configured. Each drive has a capacity of 6TB, for a total storage capacity of 24TB. To reconfigure this unit to be not pluggable for drive replacement and provide total storage of 11TB to 12TB, which of the following would be the correct RAID configuration?
RAID 01
RAID 03
RAID 10
RAID 50
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Networking Fundamentals
Comments