Personal tools
You are here: Home Users Mark Bartlett copart Solaris Notes

Solaris Notes

List Processes

/usr/ucb/ps -axuww | grep del

ps -ef

/usr/bin/ps -ef | sed 1d | awk '{print $2}'

 Ping

ping -s   mytest.com
ping -ns  mytest.com

Change to plone user

sudo su - plone
Grep
find . -type f -exec grep somepattern {} +
Find ports in use
netstat -P tcp

find size of dirs

du -ks * | sort -n +0

 

Solaris version
uname -a

Vi issues 

$ cat ~/.exrc
:map! ^[OA ^[ka
:map! ^[OB ^[ja
:map! ^[OC ^[la
:map! ^[OD ^[ha
$

 

^ please note that ^[ must be produced with ctrl-v + ESC.

 

 

 

 http://developers.sun.com/solaris/articles/build_sw_on_solaris.html

 so it is important to make sure that /usr/ucb is after /usr/ccs/bin and /opt/SUNWspro/bin in our PATH (or perhaps even better, not in our PATH at all).

 

 Vi delete blank lines

:g/^$/d

 

 

Document Actions