0% found this document useful (0 votes)
467 views

Solaris Commands

This document provides summaries of various Solaris commands for obtaining system information and performing administrative tasks. It lists commands for checking file systems, processes, processors, network connections, installed packages, disk usage, tape operations, NFS mounts, clearing locks, and more. Many examples are given showing the commands in use.

Uploaded by

prashant26011980
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
467 views

Solaris Commands

This document provides summaries of various Solaris commands for obtaining system information and performing administrative tasks. It lists commands for checking file systems, processes, processors, network connections, installed packages, disk usage, tape operations, NFS mounts, clearing locks, and more. Many examples are given showing the commands in use.

Uploaded by

prashant26011980
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

f -n (or fstyp device) show type of file system (ufs/vxfs)

fuser and pfiles open files


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

You might also like