Session length

1 / 20

To list the processes running on the system along with their network usage, which command would you use?

top

htop

lsof

To list the processes running on the system along with their network usage, the command that best fits this requirement is `lsof`. This command stands for "list open files," and in Unix-like operating systems, it is capable of displaying information about files opened by processes. Files in this context include network sockets, making `lsof` especially useful for monitoring network usage.

When you run `lsof`, you can specify options to filter the output to show only network-related files or connections, allowing you to see which processes are using network resources, the associated ports, and the state of those connections. This makes it a powerful tool for diagnosing network issues or monitoring network activity on a system.

The other commands mentioned do not specifically focus on network usage in the same way. For example, `top` and `htop` are great for providing a dynamic, real-time view of system processes and their resource usage, but they do not directly show detailed network connection information. The `ps` command displays a snapshot of current processes but lacks the capability to indicate active network usage or associated open files. Thus, when the goal is to ascertain which processes are using network resources, `lsof` is the appropriate choice.

Get further explanation with Examzify DeepDiveBeta

ps

Next question

Find the option that is right for you!

All options are one-time payments.

$12.50

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$30.00 $87.50 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $87.50 usd value for $30.00! You save $57.50!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$12.50 $18.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy