We provide real XK0-004 exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass CompTIA XK0-004 Exam quickly & easily. The XK0-004 PDF type is available for reading and printing. You can print more and practice many times. With the help of our CompTIA XK0-004 dumps pdf and vce product and material, you can easily pass the XK0-004 exam.
CompTIA XK0-004 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word “services”. Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?
- A. #/bin/bashfind /etc –name services | sort > /var/tmp/foundservices
- B. #/bin/bashlocate /etc –sort –name services > /var/tmp/foundservices
- C. #/bin/bashfind –name services –sort </var/tmp/foundservices
- D. #/bin/bashfind /etc –name services –sort > /var/tmp/foundservices
Answer: B
NEW QUESTION 2
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?
- A. nsswitch
- B. faillock
- C. pam_tally2
- D. passwd
Answer: C
NEW QUESTION 3
A junior administrator needs to unload an older video kernel module. Which of the following commands would BEST accomplish this task?
- A. modprobe
- B. insmod
- C. rmmod
- D. chmod
Answer: A
NEW QUESTION 4
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?
- A. route
- B. host
- C. nslookup
- D. netstat
- E. ip
Answer: D
NEW QUESTION 5
A Linux administrator wants to fetch a Git repository from a remote Git server. Which of the following is the BEST command to perform this task?
- A. git checkout
- B. git clone
- C. git merge
- D. git config
Answer: B
NEW QUESTION 6
A Linux administrator must identify a user with high disk usage. The administrator runs the # du –s /home/* command and gets the following output:
Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?
- A. df –k /home/User/files.txt
- B. du –a /home/User3/*
- C. du –sh /home/User/
- D. find . –name /home/User3 -print
Answer: C
NEW QUESTION 7
A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task?
- A. Use curl to copy each user’s public key file to the respective system
- B. Use cp to copy each user’s public key file to the respective system
- C. Use ssh-copy-id to copy each user’s public key file to the respective system
- D. Use ssh-copy-id to copy each user’s private key file to the respective system
Answer: C
NEW QUESTION 8
Which of the following statements BEST represents what the term “agentless” means regarding orchestration?
- A. Installation of a tool is not required on the remote system to perform orchestration tasks
- B. It facilitates version control when using infrastructure as code during orchestration
- C. It automatically removes malware from the remote system during orchestration
- D. A tool can only be accessed remotely to perform orchestration tasks
Answer: A
NEW QUESTION 9
A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default?
- A. Runlevel 3
- B. Runlevel 4
- C. Runlevel 5
- D. Runlevel 6
Answer: C
NEW QUESTION 10
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP.
Which of the following commands should the administrator execute?
- A. ping –c 10 host1
- B. traceroute –c 10 host1
- C. netstat host1
- D. pathping –c 10 host1
Answer: A
NEW QUESTION 11
A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory. Which of the following commands would satisfy this requirement?
- A. chmod o+s <directory>
- B. chmod u+s <directory>
- C. chmod +s <directory>
- D. chmod g+s <directory>
Answer: D
NEW QUESTION 12
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?
- A. ~/ssh/authorized-keys
- B. /etc/authorized_keys
- C. /etc/sshd/ssh.conf
- D. ~/.ssh/authorized_keys
Answer: D
NEW QUESTION 13
A Linux administrator needs the “tech” account to have the option to run elevated commands as root. Which of the following commands would BEST meet this goal?
- A. $ su – tech –c “/bin/bash”
- B. # usermod –aG wheel tech
- C. # sudo –I tech
- D. # groupadd –u tech –g root
Answer: C
NEW QUESTION 14
An operator finds a user is having issues with opening certain files.
Which of the following commands would allow the security administrator to list and check the SELinux context?
- A. ls –D
- B. ls –a
- C. ls –Z
- D. ls -1
Answer: C
NEW QUESTION 15
After installing a new web server, you are unable to browse to the default web page. INSTRUCTIONS
Review all the command output and select the command needed to remediate the issue.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Solution:
Does this meet the goal?
- A. Yes
- B. Not Mastered
Answer: A
NEW QUESTION 16
......
Recommend!! Get the Full XK0-004 dumps in VCE and PDF From Allfreedumps.com, Welcome to Download: https://www.allfreedumps.com/XK0-004-dumps.html (New 267 Q&As Version)