Exam Logo

Comptia (XK0-004) Exam Questions And Answers page 21

A system ran out of storage space on a particular mount and will not allow anything to be written to disk. The df command shows there are 6GB free on the mount, and there is no inode exhaustion. This issue has happened before due to a known large log file that was not being rotated. The administrator remembers the file name but cannot remember the location of the log file or which process is writing to it. Which of the following would be the BEST solution to correct this issue while maintaining availability?
Command Line Interface Devices, Linux Filesystems, and Filesystem Hierarchy Standard
An administrator is reviewing suspicious activity on a server and needs to determine which users logged into the system within the past 24 hours. Which of the following commands should the administrator run to determine this?
Shells, Scripting, and Data Management Administrative Tasks
Which of the following describes an objective of Phase F: Migration Planning Phase?
System Configuration and Management Administrative Tasks
A systems administrator configured a new kernel module, but it stopped working after reboot. Which of the following will allow the systems administrator to check for module problems during server startup?
System Configuration and Management Essential System Services
A Linux administrator recently changed the IP addresses of all the web servers from 10.10.50.x to 10.10.100.x. The administrator needs to update the serverlist.txt file to reflect the change.

The file contains the following:

10:WebSvr01:10.10.50.21:Main
11:WebSvr02:10.10.50.22:Acconting
12:WebSvr03:10.10.50.23:Intranet
20:NFS01:10.10.20.21:FileServer
30:SMTP01:10.10.30.31:Email

Which of the following commands will change the IP addresses and update the files in place?
Networking Fundamentals
The following represents a partial listing of a user s .bashrc file:

HISTSIZE=800
HISTFILESIZE=1000
umask 2002
HISTCONTROL=ignoreboth

When the user opens a terminal, an error message appears:

Octal number out of range

Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?
Command Line Interface
A junior Linux administrator is installing patches using YUM. The administrator issues the following command:

yum list installed

The output of the command is as follows:


Given this scenario and the output, which of the following should the administrator do to address this issue?
Command Line Interface Essential System Services
A Linux administrator is updating iptables rules and is given the following tasks:

• Output a list of iptables rules.
• Remove all iptables rules.

Which of the following actions should be performed from the terminal console to accomplish these tasks? (Choose two.)
Command Line Interface Networking Fundamentals
A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?
Scripting and Automation Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Which phase of the ADM establishes a set of Principles?
Essential System Services