Lpic 1 Linux Administrator · Free Practice Question Easy

Question 6

Which of the following commands can be used to monitor processes that have active network connections?
  • A ss
  • B nc
  • C lsof
  • D touch
Reveal correct answer

Correct answer: C

A.

Incorrect. While ss is useful for examining network socket connections, it does not directly monitor processes with active network connections in the same way lsof does.

B.

Incorrect. nc (Netcat) is used for reading and writing data across network connections, not for monitoring existing connections tied to processes.

C.

Correct. lsof (List Open Files) can be used to monitor processes that have active network connections by listing open files, including network connections associated with each process.

D.

Incorrect. touch is used to create empty files or update file timestamps and is unrelated to network connections.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need