Useful Commands

From LinodeWiki

Jump to: navigation, search

Please be free to add the commands you think are useful.

  • Show all Internet Sockets listening
netstat -an --inet
  • Show the PID and name of the program to which each listening socket belongs
netstat –pln 		
  • Show all packages installed in debian type distributions (Debian, Ubuntu, Knoppix, etc...)
dpkg –-list
  • Search packages in debian type distributions
apt-cache search <pkg>	
  • Show description of packages in debian type distributions.
apt-cache show <pkg>
Personal tools