This question has already been answered:
Reported as a duplicate by members of sercxjo , aleksandr barakin , cheops , VenZell , Pavel Mayorov 4 May '16 at 11:20 .
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
|
7 answers
To do this, open the terminal and execute the command
ps -la // Для получения основных сведений о процессах, запущенных текущем пользователем ps -ela // Для всех пользователей ps -a // Базовая информация для текущего пользователя
|
top
In it we press k (kill), we enter the number of the process, we press 9 (in any way, kiln)
ps ax | grep 'ищем процесс по куску имени'
Process list
kill PID[ PID2 PID3]
I cast the process by its id
killall PIDNAME
We cast all processes by name
- onetop ps -ax If you work through ltsp, then first ltsp-localapps xterm And then use the commands described above - Asiskin
|
and to monitor the processes in real time it is better to use htop
|
ps aux
and you can quit them by PID.
kill {process PID}
- 2kill -9 PID - winrarhero
|
pstree
Prints a pretty tree. It looks like this:
init─┬─bash───onlineconf-upda ├─bash───pinger-client ├─crond ├─4*[cronolog] ├─dbus-daemon ├─httpd───6*[httpd] ├─kthreadd/106─┬─khelper/106 │ └─nfsiod/106
|
And if you need a C / C ++ program, then either analyze the / proc directory or use the libproc library
|
ps -e
Most useful
|