Forrest logo
back to the top tool

top:tldr:00c58

top: Show only processes owned by given user.
$ top -u ${username}
try on your machine

The command "top -u ${username}" is used to display system resource usage by individual users in real-time on a Linux or Unix-based operating system.

Here's a breakdown:

  • "top" is a command-line utility that provides a dynamic, real-time view of processes, resource utilization, and system performance. It continuously updates the displayed information.

  • "-u" is an option used with the "top" command to filter and display information specific to a particular user. By using this option, you can focus on the processes and resource usage of a specific user.

  • "${username}" is a placeholder for a specific username. You need to replace "${username}" with the actual username of the user you want to monitor. For example, if you want to display resource usage for the user "john," you would replace "${username}" with "john".

By running the command "top -u ${username}", you will get a real-time view of processes and resource utilization specifically for the specified user. The displayed information typically includes CPU usage, memory usage, process IDs, execution time, and more.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the top tool