Cmnds
Cmnds
unix consulting in the uk. real life unix observations and tips. sundot/ unix/ handy commands
Some handy Solaris commands just a reference to useful options and commands.
set path to something like
PATH=/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/usr/platform/`unam e i`/sbin:/usr/proc/bin:/usr/ucb/:/usr/dt/bin:/usr/openwin/bin:/ usr/local/bin:$HOME/bin
df -n fuser
show type of file system (ufs/vxfs) open files OBP level process info and manipulation local users without passwords | duplicate uids processor information and more since Solaris 7 print old style man pages print sgml (new) man pages list superblock including minfree % nice screen output information about binaries insert control character
prtconf -V pgrep, pkill, prstat -a logins -p|-d mpstat, prtdiag, psrinfo -v traceroute troff -man man.1 | dpost | lp sgml2roff lpfilter.1m | troff -man | dpost | lp fstyp -v tput what, ldd, strings ctrl-V
in vi
ftp> get README | more ufsdump 0f - /filesystem | (cd /mnt; ufsrestore rf -); rm /mnt/restoresymtable echo \007 comm pkgchk -lp /usr/bin/ls df -oi -F ufs
dump restore pipe get bell to ring common (non-common) lines from two files which package does ls belong to? free inodes
icheck -b blockno filesystem dircmp, rsync, filesync nohup /var/tmp/myscript.ksh > /var/tmp/myscript.out & netstat -pn pwdx, pldd, ptree uname -X read listusers tcopy nfsstat -m
block to file mapping compare directories, sync utilities for things which have to complete (no risk of terminal being logged out) arp like output when name services are down and more in /usr/proc/bin basic system information one item on each line (useful for scripts) read a line another way of listing users copy tape
current nfs mount clear nfs locks since Solaris 9 - output in powers of 1024
waiting waiting waiting waiting waiting
clear_locks df -h, du -h, ls -lh odin#rpcinfo -u localhost mountd program 100005 version 1 ready and program 100005 version 2 ready and program 100005 version 3 ready and odin# rpcinfo -u localhost nfs program 100003 version 2 ready and program 100003 version 3 ready and odin#