Tracing what a Linux process is doing
From time to time you will get hanged process or you are unsure of what a process is doing at that moment.
You can trace what a process is doing by running:
strace -p PID
Where PID is the process ID. Whis will show you what that process is doing in real time.
This is usefull for detecting exploits or the source of a hang process.
To detach from that process simply press CTRL + C.
Hope it helps ! Leave a comment if you have any questions.
If you enjoyed this post, make sure you subscribe to my RSS feed!
- June 22nd

















in whm Main >> Server Status >> CPU/Memory/MySQL Usage
i found /usr/sbin/mysqld –basedir/ –datadir/var/lib/mysql –usermysql –pid-file/var/lib/mysql/ekush.starhostbd.com.pid –skip-external-locking –port3306 –socket/var/lib/mysql/mysql.sock is marked as yallow.
how can low down the load?