Thursday, June 28, 2012

ps command get output along with column headings


ashok@ashok-simba:~$ ps auxwwww | egrep 'PID|ip' | grep -v grep  
 
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      3839  0.0  0.0   7144  2648 ?        S    06:26   0:00 /usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so



[12:04:56] root@app1:[~]
# ps aux |  egrep 'PID|plat'  |  egrep -v 'star|grep' | sort -nk5r

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...