Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A process command in top

The problem comes up when you run couple of python scripts. in top at command, it shows only 'python' with these scripts. How to rename a process or otherwise tag it so that I could tell them apart in top?

like image 230
Cheery Avatar asked Feb 26 '09 15:02

Cheery


People also ask

How do you run a process on top?

To run the top command, type top in the command line and press Enter. The command starts in interactive command mode, showing the active processes and other system information. Customize the view using the available options.

What is command in top command?

The top command (table of processes) displays the processor activity of your Linux box and also displays tasks managed by the kernel in real-time. It also shows information about CPU and memory utilization of a list of running processes.

What does the top command show?

Top's first line, top, shows the same information as the uptime command. The first value is the system time. The second value represents how long the system has been up and running, while the third value indicates the current number of users on the system.

How do you see the full command in top?

Pressing “c” toggles the COMMAND column between displaying the process name and the full command line.


2 Answers

Simply use the --full-commands option to show the full command line for each process :

top -c 
like image 152
Wookai Avatar answered Sep 19 '22 23:09

Wookai


Press "c" and display the command-line - that will allow you to see what they are.

like image 25
Douglas Leeder Avatar answered Sep 21 '22 23:09

Douglas Leeder