This is where I post snippets of information about Information Technology. It is mostly for my own reference but I hope that others will find it useful and comments are welcome.
Saturday, February 25, 2012
Wednesday, February 15, 2012
Monday, February 13, 2012
How To Determine What Process is Listening on Which Port
From : http://www.cyberciti.biz/faq/what-process-has-open-linux-port/
# netstat -tulpn
# ls -l /proc/1138/exe
Sample outputs:
# netstat -tulpn
# ls -l /proc/1138/exe
# netstat -tulpn | grep :80
Sample outputs:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1607/apache2
fuser command
Find out the processes PID that opened tcp port 7000, enter:
Sample outputs:
# fuser 7000/tcp
Sample outputs:
7000/tcp: 3813
Finally, find out process name associated with PID # 3813, enter:
Sample outputs:
# ls -l /proc/3813/exe
Sample outputs:
lrwxrwxrwx 1 vivek vivek 0 2010-10-29 11:00 /proc/3813/exe -> /usr/bin/transmission
/usr/bin/transmission is a bittorrent client, enter:
OR
Sample outputs:
# man transmission
OR
# whatis transmission
Sample outputs:
transmission (1) - a bittorrent client
Task: Find Out Current Working Directory Of a Process
To find out current working directory of a process called bittorrent or pid 3813, enter:
# ls -l /proc/3813/cwd
Wednesday, February 08, 2012
Software Bug makes webcams publicly accessible (cool :)
http://techcrunch.com/2012/02/07/thousands-of-webcams-made-publicly-accessible-by-software-bug/
Subscribe to:
Posts (Atom)