netstat -anop
Then use ps and grep to find the process using this port
Then use ps and grep to find the process using this port
Technical tid-bits and more ! Leave a comment if you found something useful.
It is easy to open a file in vim and do a search replace - but if the file runs into huge sizes, a regular editor would not be able to perform search and replace tasks on it efficiently. For these situation, you need a "stream" editor. Here is an example for replacing "foo" with "bar" in a file called snafu.txt
sed -i -e 's/foo/bar/g' snafu.txt
-i : Is for inplace replacement
-e: sed script to be run on the file
Following command will run a shell script on a remote machine
ssh ssinghal@192.168.0.1 /tomcat/jakarta/bin/kill.sh
for i in `ls /home/ssinghal` ; do mv "$i" "$i.new" ; done