Friday, March 9, 2012

Important Ubuntu Commands For Developers


1) To Run Application: Alt+F2

2) Top - to show process

3) free m: to view memory

4) gnome-system-monitor -n GUI

5) Show the Process/Services : ps -e

6) Remove All .svn Files:
find ./ -name ".svn" | xargs rm -Rf

7)service mysqld restart


8)to see what ports are opened, use the following command:

nmap localhost OR nmap

9)to close a port, simply run the following command:
fuser -k /tcp
to close port 80 (HTTP):fuser -k 80/tcp

10)sudo netstat -lpn |grep :8080  then kill that process id

11) To View All Java Applications:
pgrep java

12) To View Tomcat Running on 8080 port

 fuser -n tcp 8080

To Kill :

kill -9 ProcessID

13)  View Network Path of URL
 
traceroute url.com

14)  Configure IP

sudo ifconfig eth0:1 Your IP(192.168.0.22) up

No comments:

Post a Comment