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?
Use the locate command to find where the large log file is located and delete it
Use the du command to find where the large log file is located and delete it
Use the ps command to find which process is writing to the log file, and then kill and restart the process
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?
last
who
id
usermod
Shells, Scripting, and Data Management
Administrative Tasks
Which of the following describes an objective of Phase F: Migration Planning Phase?
Develop a Target Technology Architecture
Consolidate the Gap Analysis results from Phases B through D
Generate and gain consensus on an initial Architecture Roadmap
Coordinate the Implementation and Migration Plan with other frameworks
Operate the governance framework and manage an architecture contract
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?
lsmod
modprobe
modinfo
dmesg
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?
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?
sed 's|.50|.100|g' serverlist.txt
sed -g 's|.50|.100|a' serverlist.txt
sed -i 's|.50|.100|' serverlist.txt
sed -i 's|.50|.100|g' serverlist.txt
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?
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?
HISTSIZE=800
HISTFILESIZE=1000
umask 2002
HISTCONTROL=ignoreboth
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?
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?
renice n 9 p 5180
killall yum
ps ef | grep yum
top | grep yum
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.)
• 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.)
iptables -F
iptables -L
iptables -I
iptables -C
iptables -A
iptables -N
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?
mount -o iso9660 /dev/sr0 /mnt
mount -o loop -t iso /mnt
mount -o loop /tmp/image.iso /mnt
mount -o loop /dev/kvm /mnt
Scripting and Automation
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Which phase of the ADM establishes a set of Principles?
Preliminary Phase
Phase A
Phase D
Phase G
Phase H
Essential System Services
Comments