Commands by r00t4u (5)

  • running top command in batch mode. it is usefull if you want to redirect the output in a file. Show Sample Output

    top -b -n 1
    r00t4u · 2010-01-24 16:17:30 1

  • -2
    ps ax| awk '/[h]ttpd/{print $1}'| xargs kill -9
    r00t4u · 2009-12-07 09:53:18 1

  • 0
    for i in `mysqladmin -h x.x.x.x --user=root -pXXXX processlist | grep <<username>>| grep <<Locked>>| awk {'print $2'}` do mysqladmin -h x.x.x.x --user=root -pXXX kill $i; done;
    r00t4u · 2009-12-06 05:46:48 0

  • -2
    ps aux| grep -v grep| grep httpd| awk {'print $2'}| xargs kill -9
    r00t4u · 2009-12-06 05:39:50 4
  • this command gives you the total number of memory usuage and open files by the perticuler PID. Show Sample Output

    pmap -d <<pid>>
    r00t4u · 2009-12-06 05:34:46 0

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: