Junior — Middle
What commands, besides 'top', can be used to get process information in Linux?
sobes.tech AI
Answer from AI
In addition to the top command, Linux offers the following commands to obtain information about processes:
ps— displays a list of current processes. For example,ps auxshows all processes with detailed information.htop— an interactive process viewer with a user-friendly interface (similar totop, but more visual).pidof— allows you to find the PID of a process by name.pgrep— searches for processes by name or other criteria.pstree— displays processes in a tree structure, showing hierarchy.vmstat— shows statistics on processes and system resources.
Example of using ps:
ps aux | grep nginx
This will display all processes related to nginx.