Archive for the ‘Command Tips’ category

Linux Command Tips

August 3rd, 2009

Change directory:

chnage to home of the logged in user

cd ~

Change to previous directory

cd -

To re-enter a command entered previously

!starting-letters of the command

eg:

!netstat

To list listening ports and PID:

netstat -nlp

Eg:

To list all ruby ports:

netstat -nlp | grep ruby

for tomcat n all

netstat -nlp | grep java

Retweet this post