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