Lpic 1 Linux Administrator · Free Practice Question Easy
Question 6
- 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.
