|Exam Name||:||CompTIA Linux+ Certification Exam|
|Questions and Answers||:||217 Q & A|
|Updated On||:||Click to Check Update|
|PDF Download Mirror||:||XK0-004 Brain Dump|
|Get Full Version||:||Pass4sure XK0-004 Full Version|
An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk usage check shows / has plenty of space. Which of the following BEST represents where the administrator should check next?
A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot. Which of the following is the BEST command to do this?
systemctl reset-failed sendmail
systemctl mask sendmail
systemctl stop sendmail
systemctl disable sendmail
A user creates and installs a Linux VM on a local workstation. The VM can only connect to the local workstation. Which of the following BEST represents the default virtual network configuration in this instance?
A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command:
# screen /dev/USB0
Which of the following does this command MOST likely accomplish?
It copies the network traffic from the device connected to USB0 and screens out rejected traffic.
It logs all troubleshooting output from the monitor to external USB0 storage.
It monitors USB0 waiting for a network device to be connected to it as an Ethernet device.
It allows the administrator to interact with the character device connected to USB0.
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?
A Linux administrator recently reprovisioned a new corporate web server to replace a legacy one. To minimize the impact on the company's users, the administrator modified the network and DNS settings of the new server to be the same as the legacy server.
When attempting to log in to the new server remotely over SSH, the following error message is displayed: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Which of the following should the administrator do to resolve the issue?
Restart the network services on both the remote server and the local machine.
Remove the entry for the web server from the known_hosts file on the local machine.
Update the /etc/hosts file on the remote server and local machine.
Add the administrator's public key to the authorized_keys on the remote server.
A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1. Which of the following commands should the administrator execute to determine the default gateway of the server?
ip a default-gw
A Linux user uses a VPN to securely access the company's systems from a laptop.
Which of the following protocols are MOST likely used to secure the VPN connection? (Choose two.)
Joe, a user, reports there is data missing after a reboot of the system he is using. The data he was working on was located in /opt/data/user1. A Linux administrator runs the following commands and receives the resulting output.
Which of the following should the administrator perform to resolve the issue?
The administrator can conclude Joe no longer has permissions to his data and needs to change the data ownership to Joe.
The administrator can conclude the data is gone from the system and needs to be restored from a backup.
The administrator can conclude Joe has been using the wrong folder and should be using /opt/data/user2.
The administrator can conclude the drive is not mounted properly and should be remounted.
A systems administrator notices several intensive tasks executing from users Joe and Ann. These processes are impacting server operations but must be allowed to continue running. Which of the following commands should the systems administrator run to reduce the impact on the server?
pkill -u joe ann
renice 11 -u joe ann
nohup -u joe ann
strace -u joe ann
A Linux administrator needs to prevent the Postfix mail transfer agent from starting on boot. Which of the following commands will accomplish this task?
systemctl stop postfix.service
systemctl disable postfix.service
A systems administrator manually added a new library to the server. The administrator wants to rebuild the library cache for immediate use. Which of the following commands should the systems administrator run to achieve this goal?
An administrator is troubleshooting to determine why backups are failing on a particular server. The administrator runs the ps command and analyzes the following output.
The administrator runs kill -9 10112 yet the process remains. Which of the following BEST describes the issue and how to fix it?
The backup process is still running and needs to be killed with kill -9 --force 10112.
The backup process is a zombie process, and the system needs to be rebooted.
The backup process is out of memory, and more memory needs to be added to the system.
The backup process is using 100% of system resources and needs to be rescheduled with renice.
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab. Which of the following crontab entries would run the script every Monday at 2:05 a.m.?
1 * * 5 2 /scripts/backup.sh
2 5 * * 1 /scripts/backup.sh
5 2 * * 1 /scripts/backup.sh
1 * * 2 5 /scripts/backup.sh
5 2 * * 0 /scripts/backup.sh
A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free inodes. Which of the following commands should the user attempt NEXT to diagnose the situation?
df -h /mnt/storage
du -sh /mnt
fdisk -l /mnt/storage
df -i /mnt/storage
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain. Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain?
echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts
hostnamectl set-hostname "Server1" --pretty
hostnamectl set-hostname Server1 --transient
hostnamectl set-hostname Server1.localdomain --static
A systems administrator uses a remote execution engine to iterate through each IP address in a network and run a script on remote hosts. The script captures the remote system's hostname, IP address, OS distribution, and system uptime. The output of the script gets saved to the administrator's local workstation for future processing.
Which of the following is this an example of?
Infrastructure as code