CompTIA XK0-004 - CompTIA Linux+ Exam

Question #6 (Topic: Topic 1)
An administrator receives a warning about a filesystem filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the
file, but no space is recovered on the filesystem.
Which of the following commands would BEST assists the administrator in identifying the problem?
A. lsof | grep largelogfile B. pkill /tmp/largelogfile C. pgrep largelogfile D. ps ג€"ef | grep largelogfile
Answer: A
Question #7 (Topic: Topic 1)
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
A. UEFI B. PXE C. NFS D. GRUB
Answer: A
Question #8 (Topic: Topic 1)
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming
too much space.
Which of the following is the correct sequence given only a terminal is available?
A. 1. CTRL-C 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-Z B. 1. CTRL-C 2. fg 3. watch df /var 4. CTRL-Z 5. bg 6. CTRL-Z C. 1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-C D. 1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-Z 5. fg 6. CTRL-C
Answer: D
Question #9 (Topic: Topic 1)
A Linux administrator must identify a user with high disk usage. The administrator runs the # du ג€"s /home/* command and gets the following output:
[CompTIA-XK0-004-1.0/xmlfile-9_1.png]
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/User3/files.txt B. du ג€"a /home/User3/* C. du ג€"sh /home/User/ D. find . ג€"name /home/User3 -print
Answer: C
Question #10 (Topic: Topic 1)
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
Download Exam
Page: 2 / 74
Total 368 questions