Exam Code: XK0-004 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: CompTIA Linux+ Certification Exam
Certification Provider: CompTIA
Free Today! Guaranteed Training- Pass XK0-004 Exam.
CompTIA XK0-004 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
A junior systems is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
View current settings of the LC_ALL environment variable only. Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
- A. echo $LC_ALL
- B. locale
- C. cat $LC_ALL
- D. export LANG = en_US.UTF-8
- E. export $LANG = en_US.UTF
- F. stty
Answer: BD
NEW QUESTION 2
A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.
Which of the following should the administrator use to reduce the output of memory messages?
- A. free : swapoff / swapfile ; swapon -a
- B. mkswap /swapfile; swapon –a
- C. fallocate –l 2G /swapfile && swapon –a
- D. echo “1” > /proc/meninfo ; swapon / swapfile
Answer: A
NEW QUESTION 3
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space.
Which of the following is the correct sequence given only a terminal is available?
- A. 1. CTRL-C2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-Z
- B. 1. CTRL-C2. fg3. watch df /var4. CTRL-Z5. bg6. CTRL-Z
- C. 1. CTRL-Z2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-C
- D. 1. CTRL-Z2. bg3. watch df /var4. CTRL-Z5. fg6. CTRL-C
Answer: D
NEW QUESTION 4
An administrator is analyzing a Linux server which was recently hacked.
Which of the following will the administrator use to find all unsuccessful login attempts?
- A. nsswitch
- B. faillock
- C. pam_tally2
- D. passwd
Answer: C
NEW QUESTION 5
A Linux administrator needs to take stock of USB devices attached to the system. Which of the following commands would be BEST to complete this task?
- A. lspci
- B. lsusb
- C. cat /proc/USB
- D. modprobe -–usb
Answer: B
NEW QUESTION 6
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?
- A. $ su – tech –c “/bin/bash”
- B. # usermod –aG wheel tech
- C. # sudo –I tech
- D. # groupadd –u tech –g root
Answer: C
NEW QUESTION 7
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file.
Which of the following is the BEST reason to do this?
- A. To document the infrastructure so it can be included in the system security plan
- B. To ensure the administrator follows the planning phase of the system development life cycle
- C. To define the infrastructure so it can be provisioned consistently with minimal manual tasks
- D. To validate user requirements have been met within each regional datacenter for compliance
Answer: B
NEW QUESTION 8
A Linux administration is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.
Which of the following commands enables this feature for IPv4 networks?
- A. cat /proc/sys/net/ipv4/ip_route > 1
- B. echo “1” > /proc/sys/net/ipv4/ip_forward
- C. echo “1” > /proc/sys/net/ipv4/ip_route
- D. echo “1” > /proc/sys/net/ipv4/ip_net
Answer: B
NEW QUESTION 9
A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server’s router is 192.168.1.1. The administrator reviews the output of route –n:
Which of the following commands should the administrator run to correct the issue?
- A. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- B. route add –net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- C. route add 192.168.1.1 default 192.168.1.50 eth0
- D. route host gw 192.168.1.1 eth0
Answer: B
NEW QUESTION 10
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
- A. UEFI
- B. PXE
- C. NFS
- D. GRUB
Answer: A
NEW QUESTION 11
A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment. Which of the following commands should be run on each of the testing systems to BEST meet this goal?
- A. # hostnamectl set-hostname “192.168.1.100 production.company.com”
- B. # grep –i IP “${ip addr show} production.company.com” > /etc/resolv.conf
- C. # ip addr add 192.168.1.100/24 dev eth0 && rndc reload production.company.com
- D. # echo “192.168.1.100 production.company.com” >> /etc/hosts
Answer: A
NEW QUESTION 12
A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed. Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?
- A. lsmod, modprobe, modinfo
- B. modinfo, insmod, modprobe
- C. modinfo, insmod, dmesg
- D. lsmod, insmod, dmesg
Answer: A
NEW QUESTION 13
A user attempts to use the mount -a command but gets the following error: mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
- A. mount –a /mnt/test
- B. mkdir –p /mnt/test
- C. mdadm –p /mnt/test
- D. mkfs /mnt/test
- E. touch /mnt/test
Answer: B
NEW QUESTION 14
An administrator has written the following Bash script:
All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
- A. The shebang points to the wrong path.
- B. The script is not executable.
- C. The formatting of the file is incorrect.
- D. Nslookup is not installed.
Answer: A
NEW QUESTION 15
Which of the following is the template for the grub.cfg file?
- A. /etc/default/grub
- B. /etc/grub2.cfg
- C. /etc/sysct1.conf
- D. /boot/efi
Answer: A
NEW QUESTION 16
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:
Upon checking the logical volume status, the administrator receives this information:
Which of the following can be said about the data logical volume, and how can this problem be resolved?
- A. The logical volume is not activ
- B. The administrator should make it active with lvchange -ay /dev/ datavg/datalv and then mount it.
- C. The logical volume file system has become corrupte
- D. The administrator should repair it with xfs_repair/dev/datavg/datalv and then mount it.
- E. The logical volume is OK but the /dev special files are missin
- F. The administrator should recreate them by running /dev/MAKEDEV.
- G. The file system is read-onl
- H. The administrator should remount it as read-write with the command mount - o remount.rw /data.
Answer: A
NEW QUESTION 17
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:
Given this scenario, which of the following steps will address this issue?
- A. Issue the command ronice –n 0 –p 8481
- B. Issue the command renice –p 8481
- C. Issue the command renice –p 0 ~n 8481
- D. Issue the command renice –n 8481
Answer: D
NEW QUESTION 18
Given that a company’s policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?
- A. VNC
- B. NX
- C. RDP
- D. X11
Answer: A
NEW QUESTION 19
A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. to which of the following files should the RSA token be added to allow this access?
- A. authorized_keys
- B. ~/.ssh/ssh_config
- C. id_rsa.pub
- D. known_hosts
Answer: C
NEW QUESTION 20
Which of the following configuration files should be modified to disable Ctrl-Alt-Del in Linux?
- A. /etc/inittab
- B. ~/.bash_profile
- C. /etc/securetty
- D. /etc/security/limits.conf
Answer: A
NEW QUESTION 21
A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet. To accomplish this task, the technician executes the following command:
echo 0 > /proc/sys/net/ipv4/ip_default_ttl
Which of the following commands can the technician use to confirm the expected results? (Choose two.)
- A. tcpdump
- B. traceroute
- C. route
- D. iperf
- E. ip
- F. arp
Answer: CF
NEW QUESTION 22
......
P.S. Surepassexam now are offering 100% pass ensure XK0-004 dumps! All XK0-004 exam questions have been updated with correct answers: https://www.surepassexam.com/XK0-004-exam-dumps.html (115 New Questions)