CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 23,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing.
Which of the following commands should the administrator use?
- A . bg ping remotehost
- B . fg ping remotehost
- C . ping remotehost < results
- D . ping remotehost &
0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
- A . Modify the /etc/hosts file, and add the ipv6 localhost entry to the file.
- B . Modify the /etc/hosts file, and add the::1 localhost entry to the file.
- C . Modify the /etc/hosts file, and add the ipv4 localhost entry to the file.
- D . Modify the /etc/hosts file, and add the 0.0.0.0 localhost entry to the file.
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
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 Ca /mnt/test
- B . mkdir Cp /mnt/test
- C . mdadm Cp /mnt/test
- D . mkfs /mnt/test
- E . touch /mnt/test
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 C tech Cc “/bin/bash”
- B . # usermod CaG wheel tech
- C . # sudo CI tech
- D . # groupadd Cu tech Cg root
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df Cm command, the administrator notes there is still 50% of usage left.
Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?
- A . Run the df Ci command and notice the inode exhaustion
- B . Run the df Ch command and notice the space exhaustion
- C . Run the df CB command and notice the block size
- D . Run the df Ck command and notice the storage exhaustion
A new corporate policy states that Bluetooth should be disabled on all company laptops.
Which of the following commands would disable the use of Bluetooth?
- A . echo “blacklist bluetooth” > /etc/modprobe.d/blacklist-bluetooth
- B . echo “kill bluetooth” > /etc/modprobe.d/kill-bluetooth
- C . echo “modprobe bluetooth” > /etc/modprobe.d/modprbe-bluetooth
- D . echo “rmod bluetooth” > /etc/modprobe.d/rmmod-bluetooth
An administrator needs to generate a list of services that are listening on TCP and/or UDP ports.
Which of the following tools should the administrator use?
- A . ethtool
- B . route
- C . netstat
- D . portmap
An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly.
Which of the following explains what is wrong with the script?
- A . $(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.
- B . The for should be changed to while in the loop.
- C . The > should be changed to 2> in the do statement.
- D . The -ne flag should be changed to -eq in the if statement.
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
No comment