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 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?
- A . renice Cn 9 Cp 5180
- B . killall yum
- C . ps Cef | grep yum
- D . top | grep yum
A Linux systems administrator needs to copy the contents of a directory named “working” on the local working system to a folder /var/www/html on a server named “corporate-web”.
Which of the following commands will allow the administrator to copy all the contents to the web server?
- A . scp Cr working/* webuser@corporate-web:/var/www/html
- B . tar working/* webuser@corporate-web:/var/www/html
- C . cp Cr working/* webuser@corporate-web:/var/www/html
- D . mv working webuser@corporate-web:/var/www/html
Which of the following server roles would assign a host IP address?
- A . DHCP
- B . NTP
- C . DNS
- D . SSH
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process.
The administrator runs the ps command and receives the following output:
Given this scenario, which of the following steps will address this issue?
- A . Issue the command ronice Cn 0 Cp 8481
- B . Issue the command renice Cp 8481
- C . Issue the command renice Cp 0 ~n 8481
- D . Issue the command renice Cn 8481
A Linux administrator is using a public cloud provider to host servers for a company’s website. Using the provider’s tools, the administrator wrote a JSON file to define how to deploy the servers.
Which of the following techniques did the administrator use?
- A . Infrastructure as code
- B . Build automation
- C . Platform as a service
- D . Automated configuration
Given the output below:
Which of the following commands can be used to remove MyPhoto.jpg from the current directory?
- A . unlink ./MyPhoto.jpg
- B . del Pictures/photo.jpg
- C . rm Crf ./Pictures
- D . rm Cf MyPhoto.jpg
- E . ln Crm ./Pictures/photo.jpg
An administrator needs to see a list of the system user’s encrypted passwords.
Which of the following Linux files does the administrator need to read?
- A . /etc/shadow
- B . /etc/skel
- C . /etc/passwd
- D . /etc/pw
Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory.
After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?
- A . scp ~/software.rpm [email protected]:/tmp
- B . scp ~/software.rpm [email protected]: /tmp
- C . wget [email protected]:/tmp -f ~/software.rpm
- D . scp [email protected] ~/software.rpm :/tmp
A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.
Which of the following scripts would BEST accomplish this task?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content.
Which of the following permissions should be applied to this shared directory?
- A . rwxrwxrwt
- B . rwxrwxrws
- C . rwxrwxrwx
- D . rwxrwxrw*
No comment