Thursday, May 10, 2012

ps and grep command in Linux

We have plenty of command to execute in linux platform and also those are very powerfull command. Here, i am going to give the demonstration of PS and Grep command with realtime example.

Here my scenario, I am going to kill the process of firefox which is running in my machine with out of memory.

Ps is basically process tracking command. -ef option will list out the process in detail.

Grep is fetching command. So, Here below command will fetch the firefox process running status in detail.

ps -ef | grep firefox

No comments:

Post a Comment