Wednesday, March 7, 2012

PS command

ps command 

use for check which process is run or not.

#ps -ef ---> show you all process running on computer
# ps -ef | grep -i process name ----> grep any process you want to check or kill.

If you want to set any value to any file then we run .

echo [ 1 or 0 ] > /proc/sys/net/ipv4/ip_forward

echo is command
1 or 0 is value
/proc/sys/net/ipv4/ip_forward --> file path

No comments: