exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 6 discussion

Actual exam question from CompTIA's XK0-004
Question #: 6
Topic #: 1
[All XK0-004 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://access.redhat.com/solutions/2316

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JustinHadwin
1 year, 3 months ago
To get around the formatting issue for the "-" character on this exam, you can use the inspect tool (F12 in Chrome) > Console > type "allow pasting" > and use these strings to fix it: document.body.innerHTML = document.body.innerHTML.replace(/ג€"/g, "-") document.head.innerHTML = document.head.innerHTML.replace(/ג€"/g, "-")
upvoted 1 times
...
MeisAdriano
3 years, 3 months ago
A can be the only valid solution, because "lsof" shows all file used by processes and with grep we find from who is used "largelogfile" notB: because pkill is a process kill, but /tmp/largelogfile is a file not a process. notC: pgrep can be used on proces, but /tmp/largelogfile is a file not a process. notD: "ps -ef | greplargelogfile": -e is for all processess (identical to -A) and -f do full-format listing, add additional columns.
upvoted 4 times
...
ant_man
3 years, 7 months ago
A. Agree. Find the file and restart the process associated to it. lsof | egrep "deleted|COMMAND"
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...