Cool Solaris utilities
coreadm – configure the core dump facility. You can enable/disable core dumps, control if syslog messages should occur, and what directory/file names will be used when programs dump core
dumpadm – configure how system crash dumps are handled
pargs – print out command line arguments (although only for processes ran as yourself unless you are root). This does not have the 80 character limit that /bin/ps has.
dladm – show or change data link info (great for displaying which network interfaces you have and their status, S10)
plimit – show or change resource limits of a running process (file descriptors, memory, run time, …)
prstat -L – shows per-thread breakdowns of processes
if_mpadm – test IPMP failover
getent - test name service routines (great for checking things out when testing LDAP name service implementations)
fsstat – show file system statistics (S10 u2 or higher)
bart – compute/compare file system checksums (sort of like a light version of Tripwire, S10)
route -p - add persistent routes (S10 u3 or higher)
December 1st, 2007 at 8:07 pm
One of the p-cmds I like is pwdx, which lets you see the current directory of a process.
Really useful when trying to figure out where the source file for a running script is.
December 2nd, 2007 at 6:48 pm
Ah yes, pwdx is also a very handy one, I didn’t list it because the use-case(s) for it are so limited (pretty much what you described).