Monitoring Processes With Linux Monitoring Processes With Linux
Page 1 of 1
Monitoring Processes With Linux Monitoring Processes With Linux
Monitoring Processes With Linux Monitoring Processes With Linux
There are other ways aswell like grep!
http://www.cyberciti.biz/faq/show-all-running-processes-in-linux
- Code:
top
atop
htop
There are other ways aswell like grep!
- -A: select all processes
- a: select all processes on a terminal, including those of other users
- x: select processes without controlling ttys
Task: see every process on the system
- Code:
# ps -A
# ps -e
Task: See every process except those running as root
- Code:
# ps -U root -u root -N
Task: See process run by user vivek
- Code:
# ps -u vivek
http://www.cyberciti.biz/faq/show-all-running-processes-in-linux
Re: Monitoring Processes With Linux Monitoring Processes With Linux
Other
- Code:
pstree
- Code:
ps -ejH
ps axjf
Re: Monitoring Processes With Linux Monitoring Processes With Linux
Advanced Security
Or you can email result to yourself:
Sample outputs:
3356
Following command will list the process called sshd which is owned by a user called root:
Task: Get info about threads
Type the following command:- Code:
# ps -eLf
# ps axms
Task: Get security info
Type the following command:- Code:
# ps -eo euser,ruser,suser,fuser,f,comm,label
# ps axZ
# ps -eM
Task: Save Process Snapshot to a file
Type the following command:- Code:
# top -b -n1 > /tmp/process.log
Or you can email result to yourself:
- Code:
# top -b -n1 | mail -s 'Process snapshot' you@example.com
Task: Lookup process
Use pgrep command. pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to screen. For example display firefox process id:- Code:
$ pgrep firefox
Sample outputs:
3356
Following command will list the process called sshd which is owned by a user called root:
- Code:
$ pgrep -u root sshd
Re: Monitoring Processes With Linux Monitoring Processes With Linux
More cyberciti.biz/faq/show-all-running-processes-in-linux
Re: Monitoring Processes With Linux Monitoring Processes With Linux
1034 is the example pid
- Code:
sudo kill 1034
Similar topics
» Mytop For Linux Mysql Server Monitoring
» Network Monitoring!
» Find your linux repo lists on Linux
» How To Use Linux Mint Extensions in any linux distro
» KDE 5 for Linux Mint 17 and other linux distros like open suse
» Network Monitoring!
» Find your linux repo lists on Linux
» How To Use Linux Mint Extensions in any linux distro
» KDE 5 for Linux Mint 17 and other linux distros like open suse
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|