Comptia (XK0-004) Exam Questions And Answers page 12
A user issues the following command:
ls l /var/log | egrep e ^d[rwx]{3}.*[rw-]{3}.*
The list of files in the system is shown below:
Which of the following results matches the command issued?
ls l /var/log | egrep e ^d[rwx]{3}.*[rw-]{3}.*
The list of files in the system is shown below:
Which of the following results matches the command issued?
drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
-rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log
-rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
-rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
-rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
-rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
An administrator needs to download a monitoring agent called node_exporter.0.16.0-Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical interface.
Which of the following commands will accomplish this task?
Which of the following commands will accomplish this task?
curl -K https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz
curl -k https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz
curl --auth https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz
curl -A https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
TOGAF uses a version numbering convention to illustrate the evolution of the Baseline and Target Architecture Definitions. Which version number in this convention indicates a high-level outline of the architecture?
Version 0.5
Version 1.0
Version 0.9
Version 1.5
Version 0.1
Networking Fundamentals
A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?
~/ssh/authorized-keys
/etc/authorized_keys
/etc/sshd/ssh.conf
~/.ssh/authorized_keys
Networking Fundamentals
Security
A Linux administrator 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?
Which of the following commands enables this feature for IPv4 networks?
cat /proc/sys/net/ipv4/ip_route > 1
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_route
echo 1 > /proc/sys/net/ipv4/ip_net
Networking Fundamentals
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?
Which of the following will the administrator use to find all unsuccessful login attempts?
nsswitch
faillock
pam_tally2
passwd
Command Line Interface
Security
An administrator notices that a long-running script, /home/user/script.sh, is taking up a large number of system resources. The administrator does not know the script s function. Which of the following commands should the administrator use to minimize the script s impact on system resources?
renice
kill
bg
nohup
Scripting and Automation
Administrative Tasks
An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?
df -h
du -scg /
fdisk -l
fsck /
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Shells, Scripting, and Data Management
A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator copied the files last week but must ensure any files created or modified since then are added.
Which of the following is the BEST command for the administrator to use?
Which of the following is the BEST command for the administrator to use?
scp -r /home/user99/* [email protected]:/backups/user99/
rsync -r /home/user99 [email protected]:/backups
cp -rf /home/user99/* /mnt/backups/user99/
sftp -b /home/user99/* [email protected]:/backups
Scripting and Automation
Shells, Scripting, and Data Management
Complete the sentence by selecting the applicable pair of words. A/an _____is used in Phase A to help identify and understand business _____that the architecture has to address.
activity model, perspective
business scenario, requirements
use case, interconnections
view, concerns
business transformation readiness assessment, constraints
System Configuration and Management
Command Line Interface
Comments