hardware, firmware, devices
disks
kernel, boot, files, volumes swap
networking
security, backup
software, patching, tracing, logging
references
TASK \ OS
AIX
A/UX
DG/UX
OS notes
By IBM, with input from System V, BSD, etc. Runs mainly on IBM RS/6000 and related hardware.
HP-UX
Data General was aquired by EMC in 1999.
This table does not include external packages from /usr/ports.
smit
HewlettPackard
SGI. SVR4based
sam
/usr/sysadm /bin/sysmgr (6.3+)
smitty administrativ wsm e GUI
IRIX
Derived from 4.4BSD-Lite and 386BSD.
Apple 19881995. Based on AT&T SysV.2.2 with extensions from V.3, V.4, and BSD 4.2 and 4.3
FreeBSD
toolchest Finder
sysadm
sysinstall
smh (11.31+)
/usr/Cadmin/ bin/*
adduser
useradd
/usr/sysadm/ privbin/
chpass
userdel
addUserAcco unt
rmuser
usermod
lsuser
pw
getprpw
mkuser
vipw
modprpw
useradd (5+) Finder
useradd
userdell (5+) /etc/adduser userdel
managing users
usermod
edit
(5+)
/etc/passwd
chuser
pwget
passmgmt
/usr/Cadmin/ bin/cpeople
rmuser usrck TASK \ OS
AIX
A/UX
DG/UX
FreeBSD
HP-UX
prtconf
uname
ioscan
lscfg
sysctl -a
dmesg (if you're lucky)
lsattr
dmesg
adb
cat /var/run/dm model esg.boot stm (from the pciconf -l SupportPlus
lsdev
lspath
CDROM) list hardware configuratio n
?
dg_sysreport g hardware usbconfig
camcontrol devlist
bdf (like bdf (like most vendors' df ) getconf machinfo (11.23+) print_manife st
IRIX
hinv
sysinfo -vv
cat /etc/hostid
uname -u unique id useful for licensing
?
?
uname -m
uname -i sysctl kern.hostuui d
?
lsattr -El sys0 -a systemid
dg_sysctl |
show/set
bootlist -o -m n/a EEPROM/NV normal RAM
grep BOOTPATH
setboot
nvram
stm
printenv/sete nv (at command monitor)
camcontrol
inf -e
scsiha -pr
atacontrol
ioscan -fnC devtype ;
ioconfig -f /hw
kldload
insf -C devtype
scsiadminsw ap
eeprom (SPARC only)
values
add device without reboot
cfgmgr -v
?
N/A
/etc/rc.d/dev fs restart
camcontrol remove
stop
-b bus -p
device
camcontrol eject /dev/rsa0
tape device
/dev/rmt0
/dev/rdsk/c8 /dev/rmt/0 d?s0
/dev/*wt*
/dev/tape /dev/rmt/0m /dev/nrtape
/dev/*sa[09]*
stdin/ stdout/ stderr
?
?
X kvm config ?
TASK \ OS
read a disk label
?
AIX
lspv
?
/dev/fd/[012 /dev/fd/[012 ]
Xorg configure
/usr/bin/X11 /xsetmon
xf86config
/usr/gfx/set mon
?
A/UX
?
/dev/fd/[012 /dev/fd/[012 ? ]
itemap
DG/UX
FreeBSD
HP-UX
admpdisk -o disklabel -r list
scsimgr (11.31+)
admvdisk -o list
diskinfo
gpart show (7.0+)
IRIX
prtvtoc
pvdisplay
whole disk in hdisk[0,1,2,... ? ] partition
?
c
fdisk
10
?
dvhtool
disklabel -wr label a disk
partition a disk
mkvg
?
admpdisk
sysinstall gpart add (7+) sade (6.3+)
f x -x pvcreate
dp
fdisk
smh (11.31+)
Finder: Apple HD SC Setup
sysi sysins nsta tall ll
lv lvcr crea eate te
gpart add (7.0+)
sam
mklv
admpdisk
fx
sade (6.3+)
TASK \ OS
AIX
A/UX
DG/UX
FreeBSD
HP-UX
IRIX
/hpux (9) /stand/vmuni x (10+)
kernel
show/set kernel parameters
/unix
/unix
vmo
/etc/kconfig vi /var/Build/
ioo
Finder
schedo
/dgux
/boot/kernel /kernel
/boot/loader. smh (11.31+) conf
system.host system.host sysctl name; ;
reboot
/unix
/etc/sysctl.co nf
sam
sysdef
systune
kmtune (11+) kctune (11.23+) getconf limit physical rmss memory loaded kernel modules
?
?
?
genkex vxketadm -s
vxketadm load module modname load
?
?
kldstat
?
?
kldload
?
?
kmadmin -s kcmodule -a ? (11.23+) kmadmin -L kcmodule ? module=load ed (11.23+) kmadmin -U
unload module
?
?
?
kldunload
? kcmodule module=unu sed (11.23+)
boot0cfg
make disk bootable
disklabel bosboot -a
?
dg_sysctl
mkboot
dvhtool
/etc/rc* (9)
/etc/rc*
gpart bootcode (7+) sade (6.3+) /etc/rc*
/etc/rc* (4-)
/etc/inittab
/etc/rc.d/* (5+)
startup scripts
?
/etc/rc*
/etc/init.d/
/etc/rc.config /usr/local/etc .d /rc.d/* (preferred) /sbin/rc* (10+) /sbin/init.d/
startsrc start/ stop/ config services
stopsrc lssrc
?
?
service (8.1+)
?
chkconfig
refresh srcmstr
shutdown (& shutdown power off if Fh possible)
/etc/shutdo wn -h Finder
?
shutdown -p shutdown yh 0 now
0: shut down 0: powerdown
run levels 1
2: multiuser
0: halt and power off
*=normal states
6: reboot
1: single-user s,S: singlemode user
for more detail
6: re reboo boott
see
c: block 2: multiuser further logins
www.phildev .net/runlevel s.html
q: rescan ttys(5) file ?
show runlevel 1
time zone info
check swap
?
kernel security levels: -1*: permanently insecure 0: insecure 1: secure 2: highly secure 3: network secure sysctl who -r who -r kern.securele vel /etc/localtim /etc/environ /etc/TIMEZO /etc/TIMEZO e NE NE ment ($TZ) /usr/share/z oneinfo admswap -o swapinfo list -buv
lsps -a
/etc/swap -l
dg_sysreport pstat -s p freeswap
/etc/shutdo wn -y -g0 -i0 p
s,S: singleuser
1: sy syss ad admi min n 1: sy syss ad admi min n
2: multiuser (no NFS)
3*: share NFS 3*: multiuser
4*: start GUI
4: userdefined
5: userdefined
5: firmware monitor
6: userdefined
who -r
who -r
/usr/lib/local e/TZ/ /usr/lib/tztab /etc/TIMEZO NE swap -s
swap -l swapinfo
systat -swap
bind process bindprocesso ? r to CPU
TASK \ OS
AIX
?
A/UX
cpuset
DG/UX
FreeBSD
ufs/ffs/ufs2 (5+) "normal" filesystem
jfs
ufs
psrset -b mpsched -c intctl
HP-UX
dg/ux
efs, xfs ext2
vxfs (11.0+)
zfs (7+) ccd
jfs (vxfs)
vinum
LVM
geom (5+) zfs (7+)
VxVM ($)
jfs2
file system
/etc/filesyste ms
/etc/f /etc/fsta stab b
/etc/c /etc/chec heckli klist st
description
mount
zfs (7+)
(9)
/etc/fstab
admvdisk
IRIX
hfs
volumebased filesystem
?
runon
/etc/fstab
xlv, xvm, xfs
/etc/fstab
lsfs
/etc/fstab (10+)
smitty vg
vinum
vg*; lv*; pv* xlv_mgr
smitty lvm
ccdconfig
extendfs
smitty jfs
geom (5.3+)
fsadm
volume smitty manipulatio storage n
mkvg; rmvg chvg;
?
sysadm
gstripe (5.3+) gmirror (5.3+)
xvm
mklv; chlv; rmlv mkfs; crfs; rmfs
graid3 (5.3+) zpool
/etc/newfs create filesystem
crfs
file system debugging
dfsck fsck fsdb
/etc/mkfs
fsck
newfs
mkfs
admfilesyste zfs (7+) m
newfs
mkfs
fsck fsdb
fsck fsdb
fsck fsdb clri xfs_repair
fsck fsdb clri
and recovery
truncate -s size [K|M|G] filename
dd if=/dev/zero of= filename bs=size bs= size [b|k| m|g] \
create non-0length empty lmktemp file
?
?
count=desire prealloc count=desire d
mkfile
mount -v cdrfs -o ro
mount -t cdrom
mount /cdrom
/dev/cd0 /cdrom
/dev/pdsk/di mount_cd96 /dev/pdsk/di pfsd sk /cdrom sk /cdrom 60
pfs_mountd
pfs_mount
mount CDROM
Finder
(see man mediad )
(mounts automaticall y when CD inserted)
mount /dev/dsk/cxt ydz4
smitty cdrom
/SD_CDROM
mount -orr /dev/cdrom /mnt/cdrom (requires "Rock Ridge extension" patches, 11+)
camcontrol eject devID eject CDROM ?
(manually)
?
cdcontrol eject [-f device ]
?
mkisofs
nohup pfs_mountd &;
mdconfig; mount
nohup pfsd&;
eject
create/moun mkcd t ISO image
ACL management
?
pfs_mount -t mkisofs (freeware) iso9660 -x unix pathToIso mountPoint
?
aclget
getfacl
lsacl
aclput
setfacl
chacl
?
?
fcstat
{get,set}{f,p} getacl mac setacl mptutil scsimgr (8.0+) (11.31+)
cmgr
lscfg -vl fcs0 -vl fcs0
sh show owmo moun untt
fc fcms msut util il
cx cxfs fs-c -con onfi fig g
fcdlist
cxfsmgr
tdutil tdlist tddiag
cxfs_info
acledit ls -e
Fibre Channel / SAN
TASK \ OS
lsattr -El fcs0 -El fcs0
AIX
?
?
A/UX
DG/UX
FreeBSD
/etc/exports NFS share definitions
NFS share command
chacl
HP-UX
IRIX
/etc/exports /etc/exports /etc/exports /etc/exports
/etc/xtab
/etc/dfs/dfst ab (11.31+)
exportfs -a
exportfs -a
mknfsexp
(see man acl ))
/usr/etc/exp exportfs -a ortfs -a
kill -s HUP `cat share /var/run/mo (11.31+) untd.pid` shareall (11.31+) share_nfs (11.31+)
/etc/exports
exportfs -a
NFS nfsstat information nfso -as
name resolution order
/usr/etc/nfss nfsstat tat
/etc/netsvc.c ? onf
nfsstat
mount | grep nfs
6+: /etc/nsswitc /etc/nsswitc h.conf /etc/netsvc.c h.conf onf 5.3: /etc/nsswitc /etc/resolv.c h.conf (5+) h.conf (5+) onf /usr/etc/ifco nwmgr nets netsttat -i nfig -a (11.31+)
ifco ifconf nfig ig -a
ne nettst stat at -i
no -a
/etc/ifconfig ifconfig a
/etc/host.con f (4-) f (4-)
lanadmin
netstat -i show network interface info
nfsstat
netstat -ia
landiag
ifconfig -a
netstat -v lsattr -E -l entX
lanscan netstat -in
ifconfig lan x
smittyy ch smitt chinet inet ifconfig ifconfig
edit /etc/rc.conf /sbin/set_par edit: (option ms initial /etc/{hosts, ifconfig_inte rfacename)
edit /etc/NETADD RS
chdev -a netaddr=
ifconfig
ifconfig
sys_id,
resolv.conf,
change IP
sysadm
newIP -I en# en#
TIMEZONE},
/etc/config/ {staticroute.options , ifconfig1.options}; reboot
mktcpip
start DHCP client
ping one packet
dhcpcd
ping -c 1 hostname
n/a
dhcpd
dhclient
/usr/etc/ping ping -s -c 1 hostname hostname packetsize 1
ping -c 1 hostname
?
ttccpdump
iptrace ipreport sniff network
tcpdump
?
proclaim
ping hostname 10 /usr/etc/ping 1 (9) -c 1 ping hostname hostname -n 1 (10+) nettl snoop netfmt tcpdump
netstat -r
edit /etc/rc.conf /etc/rc.config (option /etc/config/ .d/netconf defaultroute r)
route
netstat -r
route definitions
ne nettst stat at -r
netstat -r
staticroute.options
sysa sysadm dm route
telnetd, ftpd /etc/security /etc/issue banner /login.cfg
/etc/ftpwelc /etc/inetd.co /etc/issue ome nf (telnet) nf (telnet)
?
set date/time
date
(from net:
adjkerntz
ntp or other) ntpdate
date
?
ntpdate
timeslave
ntp tzsetup (obs) timed
TASK \ OS
auditing
AIX
A/UX
DG/UX
FreeBSD
HP-UX
IRIX
audit
audisp
satd
auditpr
audevent
satconfig
audomon
sat_reduce
auditselect
?
?
auditd
lsaudrec
audsys
sat_interpret
/etc/passwd (not Trusted)
encrypted passwords in
min password length allow/deny root logins
firewall config
/.secure/etc/ passwd /etc/security /etc/master. /etc/shado /etc/ shadow w /etc/shado /etc/shadow w /etc/shadow (Trusted 9) /passwd passwd /tcb/files/aut h/ (10+) /etc/shadow (11.22+) /etc/security ? /user
?
/etc/security ? /user
/etc/login.ac /etc/default/l /etc/securet /etc/default/ cess ogin ty login /etc/ttys
/etc/login.co /etc/default/ ? nf security
genfilt
ipfw
smitty ipsec4
ipf
wsm network
TASK \ OS
?
AIX
pfctl
?
A/UX
DG/UX
FreeBSD
/etc/opt/ipf/i /etc/ipf.conf pf.conf
HP-UX
rmfn, what (HP-UX 9)
lslpp -L
pkg_info
lssrc
ls swlist (HP-UX showfiles /var/db/pkg 10+) swm list (11.31+)
show installed software
IRIX
?
pkginfo
versions
showprods
lslpp -w file -w file
versions long |
rpm -qif file file
grep file grep file
file is in which package
?
?
pkg_info -W swlist -l file | grep file grep file file
smitty install
sysinstall
swm install (11.31+)
inst
rpm -ihv
/usr/ports make
swinst sta all
swmgr
installp n/a (no acgxYd add software /sourcedir package [fileset|ALL] system)
www1.ibm.com/s ervers/
sysadm
pkg_add
http://www.s ftp.freebsd.o hpux.cs.utah. freeware.sgi. ignal42.com/ rg/
aix/products/ aixos/linux/
xfree86/4.2.0 pub/FreeBSD /binaries/
download.ht ml
DGUX-ix86/
aixpdslib.sea s.ucla.edu/ precompiled aixpdslib.htm binaries of l see FAQ GPLware and
edu
com www.sgi.com /fun
www.freebsd hpux.connect nekochan.ne .org .org.uk t
freeware
bullfreeware. com
/usr/sde/def /usr/bin/cc /opt/softben /opt/MIPSpr ault/usr/bin/ (gcc) ch/bin/cc ($) o/ cc /usr/vac/bin/ /usr/local/gn /usr/bin/clan gcc /bin/cc (9) bin/cc ($) cc ($) u/gcc g (9.0+) /usr/ibmcxx/ cc bin/cc
C compiler
/usr/bin/cc (10+; not necessarily /usr/bin/cc ANSI; kernel builder only)
show patch level
instfix -ivq
swm list (11.31+)
versions -b | grep patch
and/or patches
oslevel -s
swlist -l product |
uname -R (6.5+)
grep PH PHsomeStrin someStrin g ?
what /dgux
uname -a
installp
csup (6.2+)
update (9)
inst
smitty update_all patch tool
?
dg_sysreport p patches
freebsdupdate (7+)
swinstall (10+)
swmgr
ldd
chatr
ldd
ldconfig
ldd (11+)
rld
kldstat
kmadmin
_RLD_LIST
cvsup or cvs to update, then rebuild
configure/sh dump -H ow runtime ldd linking fortran2000.com/ ArnaudRecip es/ sharedlib.ht ml
?
?
$LD_LIBRARY $LD_LIBRARY _PATH _PATH
link library path
$LIBPATH
?
$LIBPATH
$LD_LIBRARY _PATH
(64-bit)
$RLD*_PATH
$SHLIB_PATH (32- or 64bit) probevue
?=dg_strace
(>=4.20MU0
trace tracing utility
?
caliper fprof par
truss
caliper ktrace prfstat
6)
syscalls truss
define user defaults
ktrace
watch /etc/security /etc/profile / mkuser.defa /usr/lib/skel admuser -o ult set /etc/environ ment
dtrace (8+)
trace (freeware) tusc (11+, freeware)
/etc/default
SystemTap (freeware)
/etc/default/l ogin
/etc/PATH /etc/profile /etc/login.co nf /etc/MANPA TH /etc/default/ *
/etc/csh.logi ? n
csh global .login
/etc/csh.logi /etc/csh.logi /etc/cshrc n n
/var/adm/sys log
/var/adm/sys /var/adm/SY log/syslog.log SLOG
/var/adm/me
/var/adm/sul /var/adm/sul
ssages
default syslog and messages
?
?
/var/adm/me /var/log/mes og ssages sages
og
/var/spool/m queue/syslog
system error errpt reporting tool
errpt
dmesg
evmshow (11.31+)
send-pr
smh (11.31+) amsyslog
admsyslog -o report
dmesg
sysmon
availmon
sysdiag (9 (9 eventmond and early10) stm/cstm/ms tm/xstm imdmonitor (10.20+) EMS (from support CD)
ftp://ftp.soft ware.ibm.co m/
syserrpanel
sar
fstat; nfsstat; systat; vmstat; glance netstat; uustat; top; iostat;
pcp; dkstat; pmkstat;
netstat
gstat
sar; osview; gr_osview;
aix/tools/per ftools/perfp mr
gpm
uustat performance monitoring
caliper
? vmstat; iostat; sar; filemon; topas; trace;
top; sar; vmstat;
svmon; netpmon; iostat; nfsstat; netstat; uustat; Glance($) Glance ($) ptree (11.31+) lsof
match process to file or port
procfiles (5.2+, files only)
X pop-up
/usr/dt/bin/d ? terror.ds
AIX
nfsstat; nfsvis; nodevis;
proctree
Wikipedia
ecstats; linkstat; netstat;
?
A/UX
fuser
routervis; nstats; top
fuser
sockstat
?
/usr/local/bi /usr/dt/bin/d /usr/bin/X11 n/xmessage terror.ds /xconfirm
DG/UX
FreeBSD
HP-UX
fuser
IRIX
christtrekker. wwwwww.faqs.or www.freebsd www.faqs.or techpubs.sgi. users.sourcef csc.dg.com/c g/faqs/ .org/doc/ g/faqs/ com/library/ orge.net/ sc/
aixfaq/part1/ preamble.ht ml FAQs (see also faqs.org)
en_US.ISO88 hp/hpuxtpl/cgidoc/aux/faq. dguxfaqs1.as 59faq/preambl bin/browse.c html p 1/books/faq e.html gi?coll=0650 &db=FAQ
AIX-L@pucc.
hpuxadmin@
princeton.ed u
dutchworks.n l
mailing list
n/a
?
lists.freebsd. org/mailman /listinfo
(LISTSERV)
? (majordomo )
hp-ux-l
mailing list archives
www.marist.
www.dutch
edu/htbin/wl vindex?
works.nl/
ADSM-L
n/a
?
lists.freebsd. htbin/hpsysa org/mailman dmin ? /listinfo
marc.theaims group.com/ ?l=aixl&r=1&w=2
man pages
publib.bould er.ibm.com/
docs.hp.com/ techpubs.sgi. en/hpuxman com/ _pages.html
infocenter/ai x/v6r1/index. jsp?
library/tpl/cg hpuxman_pa iges.html bin/browse.c gi?
topic=/com.i www.freebsd bm.aix.doc/d n/a .org/ oc/ base/comma cgi/man.cgi ndsreference .htm
?
man.freebsd. org
coll=&db=ma n
newsgroup(s comp.unix.ai ) and forums x
comp.unix.bs d
comp.unix.au comp.sys.hp. comp.sys.sgi. comp.os.aos groups.googl www.thp.unix admin freebsd.misc hpux e duisburg.de/ cuaix/cuaix.h tml
forums.freeb sd.org connectwww.freebsd community.o .org/ rg support.html hp#user interex.com
user groups
www.userblu n/a e.org
encompassus .org
?
?
hptechnolog yforum.com forums.itrc.h p.com HP DSPP www.hpchro www.sgi.com nicle.com /support/ daemonnews www.interex.
magazines
n/a
n/a
?
.org
org/hpuxusr
bsdmag.org
www.hppro.c om
pipeline.html
freebsdnews. net www.develo per.ibm.com/ tech/map/aix rm.html www941.ibm.com vendor home n/a / page collaboration /
wwwcsc.dg.com/
www.sgi.com /software/
csc/default.a sp
software.htm l#IRIX
www.freebsd hp.com/go/h .org
pux
wiki/display/ WikiPtype/H ome
www.redboo ks.ibm.com
wwwwww.freebsd software.hp. techpubs.sgi. csc.dg.com/c .org/handbo com com sc/ ok
www.ibm.co m/
www.freebsd www.sgi.com custdocsasp/ .org/releases docs.hp.com / /
developerwo rks/aix
custdocs2.as p?
techsupport. vendor docs services. and patches ? (see also man pages) ibm.com/
itrc.hp.com
category=06 9docs.asp
support/patc h_intro.html support.sgi.c om
relnotes
server/suppo rt?
grelnotes
view=pSeries
vendor phone (US)
wikis
TASK / OS
800-426(EOL; 7378 unsupported ? (800-IBM ) SERV) www.ibm.co m/developer works/
925-6740783 (FreeBSD Mall)
wikis/display ? /WikiPtype/H ome
wiki.freebsd. ? org
AIX
?
A/UX
DG/UX
FreeBSD
800-6333600
800-800-4SGI
?
HP-UX
IRIX
SCO Linux
Mac OS X
NCR Unix
Darwin is the
(deb) = Debian, Libranet,...
OpenBSD
Reliant
OpenServer
Fujitsu Siemens. Originally called SINIX. Based on DC/OSX from Pyramid, Forked from SINIX Derived from NetBSD in SCO 4.4BSD-Lite 1995. UnixWare from and 386BSD. Security 7.0.1& SCO
(rh) = Red Hat,
Mandrake, SUSE,...
NetBSD
Open Source This table foundation does not for Mac OS X, aka MP-RAS include descended external from packages NeXTStep from /usr/pkg.
emphasis. This table does not include external packages from /usr/ports .
Siemens, and SVR4. To be replaced with Solaris by 2008.
UnixWare 7.1.1 became Caldera Open Unix and later became SCO again. SVR4-based.
(fed) = Fedora
(gen) = Gentoo (md) = Mandrake/Mandri va (SUSE) = SUSE
(rh, FC2+, RHEL4+) systemconfig* (rh) redhatconfig* linuxconf (obsolete) (SUSE) yast2 (deb) dpkgreconfigure
sysadm
WebSysAdmi n NetInfo Manager
sysadm
sushi (obs)
?
scoadmin
(md) drakconf useradd
Aqua: System useradd
useradd
useradd
sysadm
scoadmin
usermod
Preferences / userdel Accounts
userdel
userdel
useradd
useradd
userdel
userdel
niutil (OS X
adduser
userdel
Server)
us user erm mod
user useriinf nfo o
(interactive)
adduser
dscl
sysadm
usermod
usermod
chage
user
user
getent
vipw
Linux
Mac OS X
NCR Unix
NetBSD
OpenBSD
Reliant
SCO OpenServer
arch
hostinfo
prtconf
dmesg
sysctl hw
autoconf -l
hwconfig
uname
ioreg -bls
devstat
more
dmesg
showconf
hw
cat dmesg (if system_profil /var/run/dm machinetype /var/run/dm uname -p you're lucky) er esg.boot esg.boot cat /var/log/dme sg
/proc/*
lshw
dmidecode lspci lspnp lsscsi lsusb lsmod
more /etc/.osm
cat /kern/msgbu pcidump f
acpidump
scoadmin/DC U
uname -M
mpcntl -I
/usr/lib/X11/ testtools/
z35SysInfo
(SUSE) hwinfo /sys/devices/ * system_profil er SPHardware DataType | ?
grep "Serial Number:" |
?
?
?
?
?
awk '{print $4}' /dev/nvram (if you have it)
in bdm
nvram
?
eeprom
eeprom
?
hwclock
(at boot stop
nvsetenv
or ctrl-a)
udev (2.6+)
devmgmt
scsictl
reinitdev
udevtrigger
mktable
atactl
changedev
(automatic —
modprobe
kerneld
insmod hotplug cardctl
autdodiskmo unter)
(autodetected)
mkdev
/dev/ios0/rst ape001 /dev/st0
?
/dev/rmt/c* /dev/st0
/dev/[e][n][r] autoconf -1 | /dev/rct0 st[0-9]* grep TAPE /dev/stdin /dev/stdout
/dev/fd/[012 /dev/fd/[012 /dev/fd/[012 /dev/fd/[012 ? ] ]
/dev/fd/[012 /dev/fd/[012 ? ] /dev/stderr /dev/fd/[012 ]
xorgcfg
xf86config
xorgconfig
xf86cfg
Xorg configure
XFree86 configure
systemconfigdisplay xf86config XFree86 configure
?
X -configure
?
?
hwconfig
redhat-configxfree86 /etc/X11/?d m Linux
Mac OS X
NCR Unix
pdisk rawDev dump fdisk -l
Disk Utility
NetBSD
OpenBSD
Reliant
SCO OpenServer
disklabel -r prtvtoc
disk
disklabel diskName
dkpart -l
fsname
mbrlabel fdisk /dev/hda (e.g. (non-root if /dev/hda1 /dev/hda1 partitions are mounted s0 under is a partition) /Volumes) cfdisk
sysadm
/dev/ios0/rsd isk???s7
c or d sysctl kern.rawparti tion disklabel -wr
c (???=000999)
/dev/1s# (#=0,1,...)
fdisk e2label
fdisk (labels unused)
mb mbrlabel
edvtoc prtvtoc
disklabel -E diskName
dksetup
divvy
fdisk -e diskName
dkpart -e
divvy
mkpart updatescsi labelit parted (if you have it)
cfdisk
fdisk
pdisk
fdisk
disklabel -i
pdisk (on a MAC) (deb) macfdisk (on a MAC) (md) diskdrake Linux
Mac OS X
NCR Unix
/boot/vmlinu z*
/unix
/boot/bootlx
/stand/unix
NetBSD
OpenBSD
Reliant
SCO OpenServer
/unix
/stand/unix /mach_kerne (see /etc/lilo.conf l or /boot/grub/ menu.lst)
/proc/*
/usr/sbin/sys sysdef ctl
/proc/sys/*
launchctl limit
sysctl
/netbsd
sysctl
/bsd
/unix
sysctl
/etc/conf/cf. d/configure x
idtune
cat /etc/sysctl.co /etc/sysctl.co getconf /etc/opt/cf.d nf nf /stune cat /etc/launchd. /etc/conf/cf. /etc/opt/cf.d sysdef conf d/ /mtune
/etc/sysctl.co nf
quicktune.cfg
mem= (in nvram lilo.conf or bootargs="m ? /boot/grub/g axmem=MB axmem= MB "
sysdef -i
?
rub.conf) lsmod
machine memory (at the "boot"
?
?
prompt) kextstat
?
modstat
modstat
?
modadmin
kextload
?
modload
modload
?
modadmin
kextunload
?
modunload
modunload
?
modadmin
(rh) mkbootdisk
fdisk -i
/usr/mdec/in stallboot5
(deb) fdisk -A
installboot
/usr/mdec/bi osboot5
dksetup
?
/etc/rc*
/etc/rc*
?
?
modprobe
insmod
rmmod
modprobe -r
bless
dklayout
(and lilo to manipulate mbr)
/etc/rc* (but /System/Libr
/etc/rc*
may vary)
ary/
/etc/init.d/
StartupItems /etc/init.d /*,
/etc/rc
/etc/rc*
/Library/Start upItems/,
/etc /etc/r /rc. c.* *
/etc /etc/n /net etst star artt
/etc/rc*
/etc/rc.d/*
(rh) service (rh) chkconfig (deb) sysv-rc- launchctl conf
?
?
?
shutdown Ph now shutdown -y halt g0 -i0 halt poweroff (set in /etc/inittab)
?
shutdown -p shutdown now hp now
?
shutdown -i0
(set in -1: -1: 0: powerpermanently /etc/inittab) permanently down insecure s,S: single0: shutdown 0*: insecure insecure user
0: halt s,S,1: vendordependent
s,S: singleuser
1*: 1*: secu secure re
0*: 0*: in inse secu cure re 1: sy syss ad admi min n
1: single-user
1: sys admin
2: highly secure
1*: 1*: secu secure re
2*: 2*: mu mult ltiu iuser ser
2-5*: multiuser
2*: multiuser
2: highly secure
3+4*: userdefined
? 6: reboot
3: share NFS
5: firmware update
4: userdefined
6: reboot
?
5: firmware 6: reboot
sysctl who -r kern.securele vel /usr/share/z /etc/localtim /usr/share/z /usr/lib/local e oneinfo/ e/TZ /etc/localtim oneinfo/ /usr/share/z e oneinfo/
/sbin/runleve (runlevels l unused)
swapon -s
ls -l /var/vm
cat /proc/memin vm_stat fo
sysctl kern.securele who -r vel /usr/share/z oneinfo/ ? /etc/localtim e
sw swap -s
swapctl -l
swap -s
swap -l
pstat -s
swap -l swapctl
who -r
?
swap -l
cat /proc/swaps
sar -r
systat swap
?
?
free taskset ? (sched-utils)
Linux
ext2
Mac OS X
NCR Unix
OpenBSD
ffs (was ufs)
Reliant
vxfs
htfs (OpenServer 5)
ufs (root)
vxfs
vdisk
vdisk
/etc/v /etc/vfst fstab ab
/etc/m /etc/mntt nttab ab
vdisk ?
VxVM
ccd, raidframe
VxVM ($)
ccd raid softraid
/etc/dktab / /et etc/ c/fs fsta tab b
Net NetInfo Info
/etc/ etc/vvfsta fstab b
/etc/ etc/fs fsta tab b
/etc/ etc/fs fsta tab b
e2fsadm
Disk Utility
vxva
ccdconfig
ccdconfig
dkconfig
lvcreate
pdisk
raidctl
raidctl
dkmirror
lvremove
diskutil
bioctl
dkmap
lvextend
SCO OpenServer
ffs (was ufs)
hfs+
ReiserFS LVM, LVM2 EVMS
NetBSD
?
?
ufs vxfs
ext3
?
dkconfig
/etc/default/ filesys /etc/vfstab (local) /etc/rmtab (remote)
?
mke2fs
newfs
mkreiserfs
newfs_hfs
mkd kdo osfs sfs
ne new wfs fs_m _mdo doss
mkfs.* fsck debugfs
fsck fsdb
e2undel
clri
dd if=/dev/zero mkfile of= filename
newfs mkfs
?
dd if=/dev/zero
mkfs
makefs
newfs
fsck fsdb
fsck fsdb
clri
cscan_ffs lri
newfs
?
divvy (OpenServer 5) mkfs
fsck fsdb
dd mkfile if=/dev/zero
dd if=/dev/zero bs=1024k of= filename of= filename count=desire count= desire bs=1024 bs=1024 d count=desire count= desire d
dd of= filename if=/dev/zero bs=1024 of= filename dd dd bs=1k if=/dev/zero if=/dev/zero of= filename of= filenmae bs=1024 count=desire bs=1m count=desire count=desire count= desire count=desire count= desire d count=desire count= desire d d d dd if=/dev/zero of= filename bs=1 count=1 seek=desiredseek= desired1 (sparse file)
(automatic —
mount mount -F automounter /mnt/cdrom cdfs )
mount -F hs ...
(deb) mount /cdrom
sysadm
/dev/cdrom/ cdrom X
diskutil mount /cdrom /dev/disk1s0 mount -t mount cd9660 -o ro /dev/cd0a /dev/cd0a path path
diskutil eject /dev/disk1s0 eject
mkisofs
/Volumes /th ? eCDmountpo int
eject cdrom
mount /dev/cd0 path
cdio eject
? ejec ejectt cd0 cd0
ejec ejectt cd0 cd0
eject -n
eject /dev/rcd0c
makefs -t cd9660
mkhybrid -o image .iso dir
image_file directory ;; directory
?
mount -o loop pathToIso
hdiutil
? vnconfig -c vnd0
mountPoint
vnconfig vnd0 ? image .iso && mount -t cd9660 /dev/vnd0c mountPoint
?
image_file ; mount -t cd9660 /dev/vnd0a mountPoint
getfacl setfacl
?
chmod fsaclctl (10.6)
?
Linux
Mac OS X
?
n/a
?
?
?
?
(treat as SCSI ? device)
?
?
NCR Unix
NetBSD
NetInfo: /etc/dfs/dfst /exports ab /etc/exports /etc/exports Netinfo: /config/Shar dfshares ePoints kill -s HUP /etc/init.d/nf `cat s-server share /var/run/mo reload untd.pid` kill -s HUP (rh) exportfs - `cat /etc/rc.d/mo shareall /var/run/mo a untd reload untd.pid`
OpenBSD
Reliant
SCO OpenServer
/etc/dfs/dfst ab /etc/exports
/etc/dfs/shar etab
share
kill -HUP `cat /var/run/mo shar sharea eall ll untd.pid`
/etc/exports
exportfs -a
/etc /etc/n /nfs fs st star artt
cat /proc/mount nfsstat s
?
/etc/nsswitc h.conf
tcpconfig
nfsstat
nfsstat
?
showmount nfsstat
/etc/nsswitc h.conf
ifconfig
ifconfig -a
/etc/resolv.c /etc/netconfi /etc/resolv.c onf g /etc/resolv.c onf /etc/netconfi onf g (obsolete) ifconfig -a ifconfig -a ifconfig -a ifconfig -a
ethtool
netstat -a
ildconfig
NetInfo /etc/resolv.c onf
netstat -in
netstat -in
ifconfig -A
ifconfig
System Preferences: ifconfig Network
edit /etc/rc.conf ifconfig (ifconfig*)
(rh) redhatconfignetwork
(fedora) systemconfignetwork
NetInfo
inetstat -in
netstat -in
etherstat
Network Config. Mgr. (GUI)
cmxinfo
sysadm
ifconfig
ifconfig (temp.)
tcpconfig
edit edit /etc/ifconfig. /etc/hostna interface me.driver me. driver
vi /etc/default/i netconfig net
(rh) edit: / etc/hosts, / etc/hosts,
/etc/sysconfi g/network, /etc/sysconfi g/ networkscripts/ ifcfg-eth0 (deb) edit /etc/network /interfaces; /etc/init.d/ne tworking restart dhclient interface (runtime)
dhcpcd dhclient ?
?
dhclient
add dhcp to
?
?
/etc/hostna /etc/hostna me.driver (boot time)
ping -c 1 hostname
ping -c 1 hostname
ping -c 1 hostname
ping -c 1 hostname
ping -c 1 hostname
ping -c 1 hostname
ping -c 1 hostname
etherfind tcpdump wireshark ( formerly formerly ethereal) etherape
tcpd tcpdum ump p
tcp cpdu dum mp
tcpdump
tcpdump
tcpdump
?
route
tcp cpco conf nfiig
(rh) /etc/sysconfi g/network
/etc/inet/def route rou te show show aultrouter
(rh) netstat -r /etc/sysconfi g/staticroutes (deb) /etc/init.d/ne twork
nets netsttat -r
/etc/inet/gat /etc/rc.co /etc/ rc.conf nf e*
nets netsta tatt -r
/etc /etc/m /myg ygat ate e
/etc /etc/i /iss ssue ue
/etc /etc/m /mot otd d
net netst stat at -r
route route show show
netstat -r
netstat -r
/etc/issue
?
?
?
/etc/mygat /etc/mygate e
(deb) /etc/network
/etc/issue.ne t (telnet) (ftp varies; can use tcp wrappers)
/etc/ftpwelc ome
/etc/issue.ne
t ~ftp/etc/issu /etc/ftpwelc /etc/ftpwelc e ome ome /etc/issue if enabled via ~ftp/etc/msg if= in s/welcome /etc/gettyta b
ntpdate
System Preferences/
date
date
rdate
Date & Time
ntpdate
rdate
? netdate
Linux
Mac OS X
ntpd
ntpd
timed (obs)
timed
NCR Unix
NetBSD
(2.6+) auditd
OpenBSD
Reliant
SCO OpenServer
mtree
/var/log/faill og ?
?
?
/etc/security
?
?
(run nightly)
/etc/shadow NetInfo (may vary)
/etc/master. passwd /etc/shadow (/etc/spwd.d b)
/etc/master. passwd /etc/shado /etc/ shadow w /etc/shado /etc/shadow w (/etc/pwd.db )
/etc/pam.d/s ? ystem-auth
?
/etc/login.co ? nf
?
/etc/ttys /etc/securett /etc/default/l /etc /etc/t /tty tyss (doesn't y ogin affect ssh) Aqua / iptables System Prefs ipf
/etc /etc/t /tty tyss
/etc/default/l /dev/default/ login ogin
pfctl
ipchains
/ Sharing / Firewall
/etc/ipf.c /etc/ ipf.conf onf /etc/pf.co /etc/pf.conf nf
ipfwadm
ipfw
/etc/ipf6.con f
?
?
?
?
(rh) redhatconfigsecuritylevel
pfctl (3.0+) /etc/pf.conf (3.0+)
Linux
Mac OS X
NCR Unix
NetBSD
OpenBSD
ls (rh) rpm -a -i displaypkg /Applications
(rh) rpm -qa
Apple System pkginfo Profiler
(rh) yum list system_profil installed er ls (deb) dselect /Network/Ap plications (deb) aptitude
/Network/Us ers/*/
Reliant
SCO OpenServer
pkginfo -l
swconfig (OpenServer 5)
sysadm
displaypkg
pkginfo
p pkg kg_i _inf nfo o
p pkg kg_i _inf nfo o
(deb) dpkg -l Applicatio Applications ns (gen) ls /Users/*/App /var/db/pkg/ lications * (gen) eix -I (deb) dpkg -search file search file (deb) apt-file update && apt-file search file search file (rh) rpm -qif ? file
pkg_chk
pkg_info -Fe file ?
pkg_info -E file
?
?
(gen) equery b file (gen) qfile file (rh) rpm -hiv installpkg
pkgadd
pkg_add
pkg_add
pkgadd
custom
(rh) yum install pkg install pkg
drag-anddrop
pkgplus
/usr/pkgsrc && make
/usr/ports && make
sysadm
installpkg
(deb) dselect
/Applications / Utilities/
SCOadmin (GUI)
(deb) apt-get Installer install pkg install pkg (deb) dpkg -i www.linux.or fink.sourcefo
ftp://ftp.netb ftp://ftp.ope
www.caldera
g
sd.org/pub/
.com/
rge.net
linux.tucows. com
NetBSD/pack pub/OpenBS ages D/<version>/
sourceforge. darwinports. net opendarwin
rpmfind.net (deb) ftp.debian.or g
nbsd.org/
skunkware
packages
ftp://ftp.Net BSD.org/
.org
?
pub/pkgsrc
?
(deb) darwinports. packages.deb com ian.org (gen) packag es.gentoo.or 3
g
(gen) gentooportage.com3 (md)easyurp mi.zarb.org
cc
/usr/bin/cc
gcc
(Metaware) /usr/bin/cc (gcc)
/usr/bin/cc (gcc)
sw_v sw_ver erss
cat /kern/version
uname -a
(rh) cat Apple:About /proc/version This Mac
uname -a
pkginfo | grep EKS
ls (rh) cat /etc/redhat- /Library/Rece release ipts
/etc/release
(rh) rp rpm m -q
(deb) dpkg -s -s uname uname -a
/usr/ /usr/bin bin/cc /cc
/us /usr/b r/bin/ in/cc cc
sysctl -n kern.version
pkginfo -l
/us /usr/b r/bin/ in/cc cc
swconfig -P
lsbom cat /System/Libr ary/ CoreServices / SystemVersio n.plist
apt-get update
System Preferences / Software pkgadd Update
cvs
cvs
pkgadd
apt-get upgrade
softwareupd pkgplus ate
patch
cvsup
(rh) up2date
sup
(rh) yum update
cvsync
(md) urpmi
patch
sysadm pkgadd; pkgrm
pkg_add ldconfig
ldd
ldd
ldd
ldd
ldconfig
nm
ldconfig
lsmod
otool -L
$LD_LIBRARY $DYLD_LIBRA
$LD_LIBRARY
_PATH
_PATH
RY_PATH
/etc/ld.so.co man dyld nf
strace
ltrace
fs_usage
/etc/profile
?
/etc/ld.so.co $LD_LIBRARY $LD_LIBRARY $LD_LIBRARY nf ? _PATH _PATH _PATH
ktrace; kdump (<=10.4) dtruss; dtrace (>=10.5)
ldd
ldconfig
truss
ktrace
ktrace
truss
ktruss
kdump
scstat
kdump
systrace
/etc/default/l /etc/profi /etc/ profile le ogin
/etc/security /etc/p /etc/prof rofile ile /etc/s /etc/skel kel/* /* /usr/bin/defa / ults /etc/skel/ /etc/security login.conf / /etc/profile.d /*
/etc/profi /etc/profile le
/etc/default/l ogin
/etc/s /etc/skel kel/* /*
/etc/p /etc/prof rofile ile
/etc/login.co $HOME/.prof nf ile
truss
?
/etc/csh.logi /etc/csh.logi /etc/.login n n
/etc/csh.logi /etc/csh.logi ? n n
?
/var/log/sysl og
/var/adm/str eams
/usr/adm/sys log
/var/log/mes
/var/adm/us
/var/adm/log
sages
/var/log/syst ererr em.log
/usr/adm/me ssages
/var/log/mes /var/log/mes /var/adm/log /osmlog sages sages /messages
/etc/.osm
/var/log/mail log dmesg
Console
odm
(deb) reportbug
/var/log/cras errpt h.log, dmesg
dmesg
dmesg
sysadm
cat /kern/msgbu sendbug f
log3
send-pr
WebSysAdmi dmesg n
vmstat
vm_stat; nfsstat;
iostat; sar; pinfo -v; netstat; systat;
fstat; iostat;
vmstat; mpstat; dkstat;
procinfo -D
fs_usage; sc_usage;
modstat; netstat;
netstat; nfsstat; pstat;
sar; netstat; scstat
vmstat; top; fstat;
top
top
nfsstat; pppstat;
nfss ssttat
systat; top; sar
htop
Activity Monitor
smtpstat; snmpstat;
vmstat;
(10.3+)
pstree
Process Viewer (10.2- uustat; top )
lsof
fstat
netstat -atup lsof
fuser
osascript -e 'tell /usr/X11R6/b application ? in/xmessage "Finder" to display dialog "msg "' Linux
Mac OS X
NCR Unix
sockstat
fstat
xmessage
/usr/X11R6/b ? in/xmessage
NetBSD
www.linuxdo www.darwinf c.org/ o.org/
www.netbsd. org/
FAQ/LinuxFAQ
docs
faq.shtml
www.debian. www.macosx ? org/doc/ hints.com FAQ
fuser
OpenBSD
www.openbs ? d.org/faq
?
?
Reliant
SCO UnixWare
pcunix.com/S COFAQ/
www.linuma nagers
www.netbsd. www.openbs org/ d.org/
.org
MailingLists
mail.html
lists.apple.co ? m
?
?
?
?
www.linux.or g/ help/lists.ht ml www.linuxm anagers.org/
www.netbsd. www.openbs org/ d.org/
pipermail/lin uxmanagers
MailingLists
lists.debian.o lists.apple.co ? rg m
mail.html
www.linuxm developer.ap anpages.com ple.com/ /
documentati on/Darwin/
Fedora Core Reference/M ? anPages 4: linuxcomman d.org/
www.openbs man.netbsd. d.org/cgi? org bin/man.cgi
uw714doc.sc o.com/en/Na vpages/
superman_p ages.php www.tldp.or g/docs.html# man comp.unix.bs comp.unix.bs d. d. comp.os.linu comp.sys.ma de.comp.os.u comp.unix.sc comp.sys.ncr x.* (esp openbsd.mis c.* nix.sinix o.misc netbsd.misc .answers) c lucky.openbs d.misc www.apple.c om/
www.netbsd. org/gallery/
usergroups
groups.html
www.omnigr www.debian oup.com/ ? help.org developer/m ailinglists
undeadly.org ?
?
www.daemo undeadly.org ? nnews.com
?
www.themac intoshguy. com/lists/X.h tml www.linuxjo www.macwo urnal.com rld.com www.linux-
www.stepwis
mag.com
e.com
?
www.debian planet.org
www.linux.or g
ncr.com
www.caldera .com/
www.debian. org
teradata.com
products/ope nunix
gentoo.org
www.apple.c
www.redhat. om com
www.netbsd. www.openbs www.fujistuorg
d.org
siemens.com
(SUSE) www.novell.c om/linux
tldp.org
developer.ap www.info.ncr ple.com/ .com/
darwin
eCRM-
www.linuxdo www.info.ap OSHWc.org/ ple.com/ Browse
service.fujits u-siemens www.netbsd. www.openbs .com org/ d.org/
Security
docum.html
rpmfind.net/l support/dow Byinux/RPM nloads.html Results.cfm
its_sc/eks_en /unix_en.htm
www.apple.c ?pl=&PID=&ti om/support/ tle= security/secu rity.html
1-800-MYAPPLE
?
its.siemens.c om/lobs/its/
www.openbs d.org/
&release=
www.caldera .com/support
errata.html
&pl=Softwar e %20-%20
www.openbs d.org/
MPRAS&sbrn=3
security.html
(Germany) ?
?
?
? -5282
fedoraprojec t.org/ wiki.osx86pr ? wiki/Main_P oject.org age (fed)
www.openbs ? d-wiki.org
?
?
susewiki.org (SUSE)
Linux
Mac OS X
NCR Unix
NetBSD
OpenBSD
Reliant
SCO OpenServer
Solaris
Solaris 2.02.6, 7, 8, 9, 10, 11
OpenSolaris (SunOS 5.*)
SunOS 4
Solaris 1.*
BSD-based
SVR4-based.
Tru64
Ultrix
UNICOS
OS / TASK
(Digital Unix, OSF/1)
(4)= 4.0F/G
An early DEC Unix, superceded by Digital Unix (now Tru64).
(5)= 5.0A
Cray Inc., formed from the March 2000 merger of Tera OS notes Computer Company and Cray Research
An opensource version can be found at illumos.org
solstice
checklist
checklist
admintool
(5) sysman
/etc/install/i nstall
smc (8 01/01+)
?
?
xmenu
administrativ e GUI
useradd
useradd
adduser
xadmin
userdel
adduser
removeuser
udbgen
usermod getent logins /usr/sadm/bi n/smuser (9+) groupadd
Solaris
prtconf -v /usr/platfor m/`uname i`/
edit /etc/passwd userdel and create home removeuser directory dxaccounts
SunOS 4
Tru64
udbrstrict nu scripts
Ultrix
UNICOS
dia -R full
machid
vmstat -P
getconf
sbin/prtdiag v (sun4u and sun4d only)
hwmgr -get category
uname -a
arch -k
(5) hwmgr show
psrinfo -v
devices
isainfo -v
dmesg (if you're lucky) psrinfo
dmesg
pset_info
iostat -En
sys_check
prtfru
/usr/bin/X11 /dxsysinfo
cfgadm -l /etc/path_to _inst
dmesg (if you're lucky)
managing users
OS / TASK
list hardware configuratio n
hostid
hostid
consvar -g sys_serial_nu ? m
?
unique id useful for licensing
show/set
eeprom
eeprom
(4.0D+) consvar
?
?
EEPROM/NV RAM values
devfsadm. pre-Solaris 7 HW 11/99, use:
(3.2.*) scu scan edt
drvconfig; devlinks; {disks, tapes, ports}
(4.0) scu scan edt ; edt ; disklabel -rw rzXX label (for disks) add device
/dev/MAKED ? /dev/MKDEV (5.x) dsfmgr - EV k; disklabel rw dskn auto
/usr/lib/syms m/bin/hot_a dd (RDAC)
without reboot
hwmgr -scan scsi
/etc/symsm/ rmparams (RDAC)
remove
device
/dev/rmt/0
/dev/rst0
/dev/fd/[012 /dev/fd/[012 ? ]
(5.x) /dev/ntape /dev/tape
/dev/n rmt X /dev/n h where n =nontpmnt rewinding, X a number, h =density
tape device
?
?
?
stdin/ stdout/ stderr
?
?
?
X kvm config
kdmconfig (x86) fbconfig; m64config; (etc.)
?
Solaris
prtvtoc
SunOS 4
dkinfo
2c
format
Tru64
Ultrix
UNICOS
OS / TASK
disklabel -r
chpt -q
?
read a disk label
c
c
s7
whole disk in partition
prtvtoc (x86) fdisk
format
disklabel -rw chpt -a
/etc/labelit
label a disk
format
disklabel -e
/etc/install/i partition a nstall disk
format
fmthard
Solaris
SunOS 4
chpt -p
Tru64
Ultrix
UNICOS
OS / TASK
/kernel/genu nix /platform/`u name -m`/ kernel/unix /vmunix
/vmunix
/vmunix
adb
dxkerneltune adb r
/unicos
kernel
?
show/set kernel
/platform/`u name -m`/
kernel/sparc v9/unix (7+)
sysdef
getconf
sysconfig
cat
/usr/kvm/sys
/etc/system
/
kdb
parameters
ndd
`arch -k`/conf
adb -k
?
?
?
?
?
limit physical memory
modinfo
?
?
?
?
loaded kernel modules
modload
?
?
?
?
load module
modunload
?
?
?
?
unload module
installboot /usr/platfor m/
/usr/kvm/md ec
?
make disk bootable
?
startup scripts
?
start/ stop/ config services
installboot [(4.x+) hltv] disklabel -rw - ? /lib/fs/ufs/bo t [ufs|advfs] otblk protobootblk raw_device_ file bootdevice `uname -i`
/etc/rc* /etc/init.d/ (10+) svcadm
/etc/rc*
/sbin/init.d; links in /sbin/rc?.d
/etc/rc*
(10+) svcs
svcs (10+) svcadm (10+) ?
?
?
shutdown (& power off if possible)
shutdown -y ? g0 -i5
?
0: firmware monitor
0: shut down 0: shut down
run levels 1
s,S: singleuser
1: single user 1: single user
*=normal states
1: sys admin
2: multi-user, 2: multi-user, no NFS no NFS
for more detail
2: multiuser
3: multi-user 3: multi-user
see
6: reboot
www.phildev .net/runlevel
3*: share NFS 4*: userdefined 5: powerdown if possible
?
?
6: reboot ?
s.html
who -r
show runlevel 1
/etc/zoneinfo ?
?
time zone info
swapon -s
/etc/swapper
?
6: reboot
who -r
?
/usr/share/li ? b/zoneinfo/
who -r
?
swap -s
swap -l pstat -s
?
check swap
pbind
runon pset_create pset_info psradm
?
Solaris
SunOS 4
ufs
?
Tru64
4. 2
bind process to CPU
?
Ultrix
(4) ufs
zfs (OpenSolaris ) zfs(10+) zfs(10+) Solstice DiskSuite
UNICOS
NC1FS ufs
(5) AdvFS
C2FS
"normal" filesystem
Advfs ?
LSM
N/A
?
VxVM ($)
/etc/vfstab (local)
OS / TASK
volumebased filesystem
/etc/fstab
zpool (10+)
/etc/fstab
file system
AdvFS: /etc/fdmns
description
/etc/fstab
/etc/fstab
?
volume /etc/install/i manipulatio nstall n
AdvFS: mkfdmn, mkfset, addvol, showfdmn LSM: volassist or volmake, volume, volplex and volsd, volprint
meta* (Solstice ? DiskSuite; Solaris Volume Mgr (9+) )
(7-, found in /usr/opt/SU NWmd/ sbin/)
/opt/VRTSvxv a/bin/vxva (Veritas Volume Mgr) ($) newfs
newfs
AdvFS: mkfdmn
newfs
bb
mkfs
mkfs
UFS: newfs
mkfs
mkfs
zfs (10u2+)
fsck fsdb
MFS: mfs
?
?
labelit
?
?
clri
dd if=/dev/zero mkfile
mkfile
create filesystem
of= filename ? bs=1024k count=desire count= desire d
file system debugging and recovery
create non-0-
?
length empty file
/etc/init.d/vo mount mount -t hsfs ld start; /dev/disk/cdr -r volcheck or omXa mount -F hsfs -o ro /dev/sr0 /dev/dsk/c0t /dev/dsk/ c0t /cdrom 6d0s2
/mnt
/cdrom mount -t cdfs -o noversion /dev/disk/cdr om3c /cdrom
ej ejec ectt cdro cdrom m
mkisofs2;DEV ICE=`lofiadm a /absolute_pa thname/imag e.iso` ; mount -F hsfs -o ro $DEVICE
?
?
?
?
mount CDROM
?
?
eject CDROM
?
?
?
?
create/moun t ISO image
?
?
?
?
ACL management
?
Fibre Channel / SAN
getfacl setfacl
cfgadm luxadm stmsboot
?
?
?
mpathadm fcinfo
Solaris
SunOS 4
Tru64
Ultrix
UNICOS
OS / TASK
/etc/dfs/dfst ab
/etc/e /etc/expo xports rts /etc/e /etc/expo xports rts ?
/etc/exports
NFS share definitions
exportfs -a
NFS share command
dfshares
share
shareall
exportfs -a
/sbin/init.d/n fs start; ? /sbin/init.d/n fsmount start
showmount
?
?
?
?
name /etc/hosts.us resolution enamed order
nfsstat /etc/nsswitc (hardcoded h.conf
getent
into libc)
/etc/nsswitc h.conf /etc/svc.conf (obsolete)
dladm
ifconfig -a
ifconfig -a
ndd
netstat -in
netstat -in
ifconfig -a
hwmgr get attribute
show network interface info
ifconfig -a
-category network
edit : edit : /etc/{resolv.c edit onf, hosts, hostname.*, /etc/hosts netmasks, nodename,
(4.x) netsetup
netconfig
(5.x) sysman net_wizard or
ifconfig
netconfig
initif
netstat -in
NFS information
?
ifconfig
dladm (8+) kstat -n hme0 | egrep 'ifspeed|dupl ex'
dumpadm.co nf, /etc/hostna inet/ipnodes, me.* net/*/hosts}
sys-unconfig; reboot (this is overkill for a simple IP or hostname change)
?
change IP
/etc/install/i nstall
ifconfig interface dhcp
ping hostname p acketsize 1
snoop
?
dhcpconf interface start
?
?
start DHCP client
ping -c 1
?
ping hostname
ping one packet
tcpdump
?
?
sniff network
ping hostname
packetsize 1
etherfind
/etc/defaultr /etc/defaultr outer outer
/etc/notrout (kernel er tweak or
/etc/gateway adb to diable s
in.routed
/etc/routes
?
netstat -r
route definitions
forwarding)
netstat -r route add /etc/default/
/etc/issue
telnetd /etc/default/ ftpd
/etc/motd n/a
/etc/issue
telnetd, ftpd banner
?
set date/time
ntpdate
rdate
Solaris
?
ntpdate
SunOS 4
Tru64
rdate
Ultrix
(from net: ntp or other)
?
UNICOS
OS / TASK
audit auditd auditing
auditreduce
praudit
/tcb/files/aut h (only with /etc/shadow /etc/passwd /etc/shadow /etc/shado w /etc/udb /etc/udb Enhanced Security)
/etc/default/ ? passwd /etc/default/l /dev/ttytab ogin
(9+) /usr/aset/
?
Solaris
in
min password ? ? ? length allow/deny /etc/securett /etc/securett udbrestrict root ys ys R logins
?
SunOS 4
encrypted passwords
Tru64
firewall config
?
?
Ultrix
UNICOS
OS / TASK
pkginfo
prodreg
admintool
/var/sadm/in ? stall/content s
setld -i
?
?
show installed software
pkgchk -l -p binaryToChe ? ck
?
?
?
file is in which package
pkgadd
setld -l
?
?
add software
?
www.tru64u
www.sunfree ware.com
nix.compaq.c om/
www.blastwa ve.org
demos
tpegsrvr.zk3. dec.com/ freeware/tbl _packages.ht ml
?
?
?
precompiled binaries of GPLware and
freeware
/opt/SUNWs pro/ bin/cc2 /usr/b /us r/bin/ in/cc cc
showr sho wrev ev -p
sho showr wrev ev -p
prodreg (2.6+)
(if you're lucky)
/us /usr/b r/bin/ in/cc cc
/usr/b /usr/bin/ in/cc cc
/opt/ctl/bin/ C compiler cc
dupatch track -type kit dupatch track -type patch
patchadd -p
setld -i | grep patchname
cat /etc/release
sizer -vB
installpatch (2.5.1-)
setld -i
show patch level and/or patches
?
?
patchadd (2.6+) n/a pkgadd; pkgrm /usr/sadm/bi n/smpatch (9+)
dupatch ?
crle
odump -Dl
ldd
ldd
pldd
ldd
?
?
patch tool
?
configure/sh ow runtime linking fortran2000.com/ ArnaudRecip es/ sharedlib.ht ml
$LDPATH
link library path
modinfo LD_PRELOAD $LD_LIBRARY _PATH (7+ deprecated $LD_LIBRARY $LD_LIBRARY in favor of ? _PATH _PATH crle)
truss
sotruss
trace
trace
truss
cdbx
?
jumptrace
tracing utility
dtrace (10+)
/etc/default/l ogin
/etc/skel
/etc/skel
udbgen gen
/etc/profile
/etc/profile
/etc/profile
nu scripts
/etc/security /
/etc/profile
define user defaults
/etc/csh.logi ? /etc/login n (4.x+) /var/adm/me /var/adm/me /var/adm/me /var/adm/me ssages ssages ssages ssages
/etc/ etc/.l .log ogiin
?
/var/adm/sys log.dated (kern, auth, daemon, lpr, syslog, user)
/var/log/sysl og
csh global .login
/var/adm/sys log.dated (kern, auth, daemon, lpr, /usr/adm/me default syslog and syslog, user) ssages messages
softpanoram /var/log/sysl /var/adm/bin /var/adm/bin a.org/Logs/s og ary.errlog ary.errlog olaris_logs.sh (sendmail) tml
(4.x) uerf; dia (DECevent) (5.x) (System errors) EVM (evmget; evmshow)
(Hardware errors) dia; uerf ca (Compqaq analyze)
errpt
sar; iostat; kstat;
iostat; nfsstat; vmstat
sar; xsar; tsar; xsam;
mpstat; netstat; nfsstat;
/usr/opt/sv4 /usr/opt/sv4 xscc; xns; b/bin/sar b/bin/sar xnetmon;
prtdiag
dmesg
iostat; nfsstat; vmstat
system error reporting tool
prstat; trapstat; vmstat; ptree iostat; netstat; vmstat
nfsstat; perfmon; ja;
monitor
performance monitoring
mppview; xmppview;
sam; csam
fuser ?
?
?
?
match process to file or port
/usr/dt/bin/d ? terror.ds
?
?
?
X pop-up
lsof2 pfiles
Solaris
SunOS 4
Tru64
Ultrix
UNICOS
Wikipedia
http://opens www.faqs.or www2.tru64. www.supelec www.spikyno olaris.org/os/ g/faqs/ org/faq/ .fr/decus/ rman about/faq/ www.faqs.or comp-sysg/faqs/Solari sun-faq/ s2/
tru64_faq.ph faq/faqp ultrix.html
.net
FAQ/ www.faqs.or g/faqs/Solari s2/ x86/FAQ/ www.stokely. com/ unix.sysadm. resources/
FAQs (see also faqs.org)
faqs.sun.html sunhelp.org sunsunmanagers@s managers@ unmanagers
tru64-unixman
decstationman
[email protected] .org
[email protected] sunmanagers ov (majordomo) ov (majordomo) ?
mailing list
?
mailing list archives
http://www. (majordomo .ececs.uc.edu ornl.gov/its/a ) rchives/ (majordomo) mailing-lists/
www.sunma wwwwww.latech. nagers.org/ archive.
archives.html
wwwarchive.
edu/sunman. ornl.gov:800 ornl.gov:800 html 0 0
www.latech. edu/sunman. html
docs.sun.co m/
man pages
app/docs/
coll/40.10
?
?
?
?
www.freebsd .org/
cgi/man.cgi
comp.sys.sun
newsgroup(s
comp.sys.sun
. admin, comp.unix.so admin laris
) and forums comp.sys.dec comp.unix.ul comp.unix.cr , groups.googl comp.unix.tr trix ay e u64
opensolaris.o rg/os/comm unity/ advocacy/us ergroups/ugleaders/
www.cug.org
www.excray. com
?
Encompass/D ? ECUS
?
www.tru64.o ? rg
user groups
www.sunwor ld.com sun.com/sunonnet/itworld
sun.com/sola ris sun.com/biga dmin sun.com/dev elopers/supp ort ? soldc.sun.co m
?
magazines
www.tru64u www.supelec nix .fr/decus/ .compaq.com
faq/faqultrix.html
www.cray.co vendor home m
page
access1.sun.c om opensolaris.o rg docs.sun.co m
www.tru64u nix
www.cray.co m/
sunsolve.sun. com
.compaq.com /docs
craydoc
?
800-USA4SUN
vendor docs and patches (see also man pages)
N/A (EOL)
?
800-3444825
800-3444825
?
vendor phone (US)
?
?
?
wikis
wikis.sun.co m www.bigup.org/menu ? /wiki/doku.p hp
Tru64
Solaris
SunOS 4
(Digital Unix, OSF/1) (4) 4.0F/G (5) 5.0A
Ultrix
UNICOS
OS \ TASK