Sunteți pe pagina 1din 69

hardware, firmware, devices networking

disks

kernel, boot, files, volumes swap software, patching, tracing, logging A/UX

security, backup

references

TASK \ OS

AIX

DG/UX

FreeBSD

HP-UX

IRIX

OS notes

By IBM, with input from System V, BSD, etc. Runs mainly on IBM RS/6000 and related hardware.

Apple 19881995. Based on AT&T SysV.2.2 with extensions from V.3, V.4, and BSD 4.2 and 4.3

Derived from 4.4BSD-Lite and 386BSD. Data General This table was aquired does not Hewlettby EMC in include Packard 1999. external packages from /usr/ports.

SGI. SVR4based

smit

sam

/usr/sysadm /bin/sysmgr (6.3+) toolchest

smitty administrativ wsm e GUI Finder sysadm sysinstall smh (11.31+)

/usr/Cadmin/ bin/*

useradd (5+) Finder

useradd

adduser chpass

useradd userdel

/usr/sysadm/ privbin/ addUserAcco unt

userdell (5+) /etc/adduser userdel usermod (5+) lsuser mkuser chuser rmuser usrck TASK \ OS AIX prtconf lscfg A/UX DG/UX edit /etc/passwd

rmuser pw vipw

usermod getprpw modprpw pwget /usr/Cadmin/ bin/cpeople passmgmt

managing users

FreeBSD uname sysctl -a

HP-UX ioscan dmesg (if you're lucky) hinv

IRIX

lsattr

dmesg

adb

sysinfo -vv

lsdev

lspath list hardware configuratio n

cat /var/run/dm model esg.boot stm (from the pciconf -l SupportPlus CDROM) ? dg_sysreport g hardware usbconfig camcontrol devlist bdf (like most vendors' df) getconf machinfo (11.23+) print_manife st

uname -u unique id useful for licensing

cat /etc/hostid ? ? uname -i sysctl kern.hostuui d ?

uname -m lsattr -El sys0 -a systemid

show/set bootlist -o -m n/a EEPROM/NV normal RAM values

dg_sysctl | eeprom (SPARC only)

setboot

nvram printenv/sete nv (at command monitor)

grep BOOTPATH

stm

camcontrol

inf -e

scsiha -pr

atacontrol

ioscan -fnC devtype ;

ioconfig -f /hw

add device without reboot

cfgmgr -v

N/A

kldload

insf -C devtype

scsiadminsw ap

/etc/rc.d/dev fs restart

-b bus -p

remove device

rmdev

camcontrol stop

rmsf

remove device

rmdev

camcontrol eject /dev/rsa0

rmsf

/dev/tape /dev/rmt/0m /dev/nrtape

tape device

/dev/rmt0

/dev/rdsk/c8 /dev/rmt/0 d?s0

/dev/*wt* /dev/*sa[09]*

stdin/ stdout/ stderr

/dev/fd/[012 ? ]

/dev/fd/[012 ]

Xorg configure xf86config

/usr/bin/X11 /xsetmon /usr/gfx/set mon

X kvm config ?

itemap

TASK \ OS

AIX

A/UX

DG/UX

FreeBSD

HP-UX scsimgr (11.31+) diskinfo pvdisplay

IRIX

admpdisk -o disklabel -r list read a disk label lspv ? admvdisk -o gpart show list (7.0+)

prtvtoc

whole disk in hdisk[0,1,2,... ? partition ]

10

fdisk

dvhtool

label a disk

mkvg

admpdisk

pvcreate

disklabel -wr label a disk mkvg ? admpdisk sysinstall gpart add (7+) sade (6.3+) pvcreate

fx -x

dp Finder: Apple HD SC Setup partition a disk mklv admpdisk

fdisk

smh (11.31+)

sysinstall gpart add (7.0+) sade (6.3+)

lvcreate sam

fx

TASK \ OS

AIX

A/UX

DG/UX

FreeBSD

HP-UX /hpux (9) /stand/vmuni x (10+)

IRIX

kernel

/unix

/unix

/dgux

/boot/kernel /kernel

/unix

vmo

/etc/kconfig vi /var/Build/ system.host name; ; reboot

/boot/loader. smh (11.31+) conf sysctl sam systune

ioo show/set kernel parameters

Finder

schedo

/etc/sysctl.co sysdef nf

show/set kernel parameters kmtune (11+) kctune (11.23+) getconf limit physical rmss memory loaded kernel modules genkex vxketadm -s ? ? kldstat ? ? ? ?

systune

kmadmin -s kcmodule -a ? (11.23+) kmadmin -L kcmodule ? module=load ed (11.23+) kmadmin -U

vxketadm load module modname load

kldload

unload module

kldunload

? kcmodule module=unu sed (11.23+)

boot0cfg disklabel bosboot -a ? dg_sysctl gpart bootcode (7+) sade (6.3+) /etc/rc* /etc/inittab startup scripts ? /etc/rc* /etc/rc* (4-) /etc/rc* (9) /etc/rc.d/* (5+) /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 /etc/rc* /etc/init.d/ mkboot dvhtool

make disk bootable

start/ stop/ config services refresh srcmstr shutdown (& shutdown power off if Fh possible)

service (8.1+)

chkconfig

/etc/shutdo wn -h Finder ? shutdown -p shutdown now yh 0

/etc/shutdo wn -y -g0 -i0 p

run levels 1 *=normal states for more detail see www.phildev .net/runlevel s.html

2: multiuser 6: reboot

0: halt and power off

0: shut down

0: powerdown s,S: singleuser

1: single-user s,S: singlemode user 6: reboot

1: sys admin 1: sys admin 2: multiuser (no NFS)

c: block 2: multiuser further logins q: rescan ttys(5) file ? ? 4*: start GUI 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 ment ($TZ) NE NE /usr/share/z oneinfo admswap -o swapinfo list -buv dg_sysreport pstat -s p freeswap 5: userdefined 6: userdefined

3*: share NFS 3*: multiuser 4: userdefined 5: firmware monitor

show runlevel 1 time zone info

who -r

who -r

/usr/lib/local e/TZ/ /usr/lib/tztab /etc/TIMEZO NE swap -s swap -l swapinfo

check swap space

lsps -a

/etc/swap -l

check swap space

lsps -a

/etc/swap -l systat -swap

swapinfo

bind process bindprocesso ? to CPU r

cpuset

psrset -b mpsched -c intctl

runon

TASK \ OS

AIX

A/UX

DG/UX

FreeBSD ufs/ffs/ufs2 (5+)

HP-UX

IRIX

hfs efs, xfs

"normal" filesystem

jfs

ufs

dg/ux ext2 zfs (7+) ccd vxfs (11.0+)

jfs (vxfs) LVM VxVM ($) /etc/checklist (9) /etc/fstab /etc/fstab (10+) xlv, xvm, xfs

volumebased filesystem file system description

jfs2

admvdisk

vinum geom (5+) zfs (7+)

/etc/filesyste ms mount /etc/fstab lsfs /etc/fstab

/etc/fstab zfs (7+)

smitty vg

vinum

vg*; lv*; pv* xlv_mgr

smitty lvm

ccdconfig

extendfs

xvm

smitty jfs volume smitty manipulatio storage n mkvg; chvg; rmvg ? sysadm

geom (5.3+) fsadm gstripe (5.3+) gmirror (5.3+)

manipulatio n

sysadm

mklv; chlv; rmlv mkfs; crfs; rmfs

graid3 (5.3+) zpool

/etc/newfs create filesystem crfs /etc/mkfs

newfs admfilesyste zfs (7+) m

mkfs newfs mkfs

dfsck file system fsck debugging fsdb and recovery

fsck

fsck fsdb

fsck fsdb clri

fsck fsdb

fsck fsdb clri xfs_repair

truncate -s size [K|M|G] filename

create non-0length empty lmktemp file

dd if=/dev/zero of=filename bs=size [b|k| m|g] \ ? ? count=desire d prealloc mkfile

mount -v cdrfs -o ro

mount -t cdrom

mount /cdrom

pfs_mountd

(see man mediad)

/dev/cd0 /cdrom

/dev/pdsk/di mount_cd96 pfsd sk /cdrom 60

pfs_mount

(mounts automaticall y when CD inserted)

mount CDROM

Finder smitty cdrom

mount /dev/dsk/cxt ydz4 /SD_CDROM

mount -orr /dev/cdrom /mnt/cdrom (requires "Rock Ridge extension" patches, 11+)

camcontrol eject devID eject CDROM ? (manually) ? cdcontrol eject [-f device ] ? eject

mkisofs

nohup pfs_mountd &;

mdconfig; mount create/moun mkcd t ISO image

nohup pfsd&;

mkisofs (freeware)

create/moun mkcd t ISO image

pfs_mount -t mkisofs (freeware) iso9660 -x unix pathToIso mountPoint

aclget ACL management aclput ? acledit ls -e fcstat Fibre Channel / SAN lscfg -vl fcs0 lsattr -El fcs0 ? ? ?

getfacl setfacl

lsacl chacl

chacl

{get,set}{f,p} getacl mac setacl mptutil scsimgr (8.0+) (11.31+) showmount fcmsutil fcdlist tdutil tdlist tddiag

(see man acl) cmgr cxfs-config cxfsmgr cxfs_info

TASK \ OS

AIX /etc/exports

A/UX

DG/UX

FreeBSD

HP-UX /etc/exports

IRIX

NFS share definitions

/etc/exports /etc/exports /etc/exports /etc/xtab

/etc/dfs/dfst ab (11.31+)

/etc/exports

exportfs -a

exportfs -a kill -s HUP `cat share /var/run/mo (11.31+) untd.pid` shareall (11.31+) share_nfs (11.31+)

NFS share command

mknfsexp

/usr/etc/exp exportfs -a ortfs -a

exportfs -a

NFS nfsstat information nfso -as name resolution order

/usr/etc/nfss nfsstat tat

nfsstat /etc/host.con f (4-)

nfsstat

mount | grep nfs

/etc/netsvc.c ? onf

ifconfig -a no -a netstat -i show network interface info netstat -v lsattr -E -l entX

netstat -i

6+: /etc/nsswitc /etc/netsvc.c /etc/nsswitc h.conf onf h.conf 5.3: /etc/nsswitc /etc/resolv.c h.conf (5+) onf nwmgr /usr/etc/ifco netstat -i (11.31+) nfig -a lanadmin landiag ifconfig -a lanscan netstat -in netstat -ia

/etc/ifconfig ifconfig a

ifconfig lanx

smitty chinet ifconfig

edit /etc/rc.conf /sbin/set_par edit: (option ms initial /etc/{hosts, ifconfig_inte rfacename)

edit /etc/NETADD RS

ifconfig

sys_id,

chdev -a netaddr=

ifconfig

resolv.conf,

change IP

sysadm

change IP

newIP -I en#

sysadm

TIMEZONE},

/etc/config/ {staticroute.options , ifconfig1.options}; reboot

mktcpip

start DHCP client

dhcpcd

n/a

dhcpd

dhclient

proclaim

ping one packet

ping -c 1 hostname

/usr/etc/ping ping -s -c 1 hostname hostname packetsize 1

ping -c 1 hostname

iptrace ipreport sniff network ? tcpdump tcpdump

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) netstat -r netstat -r staticroute.options

route route definitions

netstat -r

sysadm route

telnetd, ftpd /etc/security /etc/issue banner /login.cfg

/etc/ftpwelc /etc/inetd.co /etc/issue ome nf (telnet)

set date/time (from net: ntp or other)

date

adjkerntz ntpdate date ? ntp tzsetup (obs) timed ntpdate timeslave

TASK \ OS

AIX audit auditpr

A/UX

DG/UX

FreeBSD

HP-UX audisp audevent satd

IRIX

satconfig sat_reduce

auditing auditselect

auditd audomon

auditing

auditd

lsaudrec

audsys /etc/passwd (not Trusted)

sat_interpret

encrypted passwords in

/.secure/etc/ passwd /etc/security /etc/master. /etc/shadow /etc/shadow (Trusted 9) /etc/shadow /passwd passwd /tcb/files/aut h/ (10+) /etc/shadow (11.22+) /etc/security ? /user /etc/security ? /user genfilt smitty ipsec4 ? /etc/login.co /etc/default/ ? nf security

min password length allow/deny root logins

/etc/login.ac /etc/default/l /etc/securet /etc/default/ cess ogin ty login /etc/ttys ipfw ipf

firewall config

wsm network

pfctl

/etc/opt/ipf/i /etc/ipf.conf pf.conf

TASK \ OS

AIX

A/UX

DG/UX

FreeBSD

HP-UX rmfn, what (HP-UX 9)

IRIX

lslpp -L

pkg_info

versions

lssrc

ls swlist (HP-UX showfiles /var/db/pkg 10+) swm list (11.31+) showprods

show installed software

pkginfo

software

lslpp -w file

versions long | grep file ? ? pkg_info -W swlist -l file | file grep file

rpm -qif file file is in which package

smitty install rpm -ihv installp n/a (no acgxYd add software /sourcedir package [fileset|ALL] system)

sysinstall /usr/ports make

swm install (11.31+) swinstall

inst swmgr

sysadm

pkg_add

www1.ibm.com/s ervers/ aix/products/ aixos/linux/ download.ht ml aixpdslib.sea s.ucla.edu/ precompiled aixpdslib.htm binaries of l see FAQ GPLware and freeware

http://www.s ftp.freebsd.o hpux.cs.utah. freeware.sgi. ignal42.com/ rg/ edu com xfree86/4.2.0 pub/FreeBSD /binaries/ DGUX-ix86/ www.sgi.com /fun

www.freebsd hpux.connect nekochan.ne .org .org.uk t

precompiled binaries of GPLware and freeware

see FAQ 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) swm list (11.31+) swlist -l product | grep PHsomeStrin g ? what /dgux uname -a versions -b | grep patch uname -R (6.5+)

show patch level and/or patches

instfix -ivq

oslevel -s

installp

csup (6.2+)

update (9)

inst

patch tool

dg_sysreport p patches

smitty update_all patch tool ?

dg_sysreport p patches

freebsdupdate (7+)

swinstall (10+)

swmgr

cvsup or cvs to update, then rebuild configure/sh dump -H ow runtime ldd linking fortran2000.com/ ArnaudRecip es/ sharedlib.ht ml

ldd ldconfig ? ? kldstat

chatr ldd (11+) kmadmin

ldd rld _RLD_LIST

$LD_LIBRARY $LD_LIBRARY _PATH _PATH (64-bit) $RLD*_PATH

link library path

$LIBPATH

$LIBPATH

$LD_LIBRARY _PATH

$SHLIB_PATH (32- or 64bit) probevue ?=dg_strace ktrace (>=4.20MU0 truss 6) dtrace (8+) caliper fprof par

tracing utility

trace ? syscalls truss

caliper ktrace prfstat trace (freeware) tusc (11+, freeware) /etc/default SystemTap (freeware)

define user defaults

watch /etc/security /etc/profile / mkuser.defa /usr/lib/skel admuser -o ult set /etc/environ ment

/etc/default/l ogin

/etc/PATH /etc/profile /etc/login.co nf /etc/MANPA TH /etc/default/ *

csh global .login

/etc/csh.logi ? n /var/adm/sys log

/etc/csh.logi /etc/csh.logi /etc/cshrc n n /var/adm/sys /var/adm/SY log/syslog.log SLOG

default syslog and messages

/var/adm/me ssages ?

/var/adm/me /var/log/mes ssages sages

/var/adm/sul /var/adm/sul og og

/var/spool/m queue/syslog

dmesg

evmshow (11.31+)

sysmon

send-pr

smh (11.31+) amsyslog

system error reporting errpt tool

errpt

admsyslog -o report

dmesg

availmon

sysdiag (9 eventmond and early10) stm/cstm/ms tm/xstm imdmonitor (10.20+) EMS (from support CD) fstat; nfsstat; systat; vmstat; glance netstat; uustat; top; iostat; gstat gpm syserrpanel

ftp://ftp.soft ware.ibm.co m/

sar

pcp; dkstat; pmkstat;

aix/tools/per ftools/perfp mr

netstat

sar; osview; gr_osview;

performance monitoring

uustat performance monitoring ? vmstat; iostat; sar; filemon; topas; trace; svmon; netpmon; proctree

caliper

ecstats; linkstat; netstat;

top; sar; vmstat;

nfsstat; nfsvis; nodevis;

match process to file or port

procfiles (5.2+, files only)

iostat; nfsstat; netstat; uustat; Glance($) ptree (11.31+) lsof ? fuser sockstat fuser

routervis; nstats; top

fuser

X pop-up

/usr/dt/bin/d ? terror.ds

/usr/local/bi /usr/dt/bin/d /usr/bin/X11 n/xmessage terror.ds /xconfirm

Wikipedia

AIX

A/UX

DG/UX

FreeBSD

HP-UX

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 mailing list (LISTSERV) n/a ?

lists.freebsd. org/mailman /listinfo

dutchworks.n l ? (majordomo ) hp-ux-l

www.marist. edu/htbin/wl vindex? mailing list archives ADSM-L n/a ?

www.dutch

works.nl/ 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/ infocenter/ai x/v6r1/index. jsp? topic=/com.i www.freebsd bm.aix.doc/d n/a .org/ oc/ base/comma cgi/man.cgi ndsreference .htm man.freebsd. org docs.hp.com/ techpubs.sgi. en/hpuxman com/ _pages.html library/tpl/cg hpuxman_pa iges.html bin/browse.c gi? ? coll=&db=ma n

n/a

org

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 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. pipeline.html .org org/hpuxusr bsdmag.org freebsdnews. net www.develo per.ibm.com/ tech/map/aix rm.html www941.ibm.com vendor home n/a / page collaboration / wwwcsc.dg.com/ csc/default.a sp www.freebsd hp.com/go/h .org pux www.sgi.com /software/ software.htm l#IRIX www.hppro.c om

user groups

magazines

n/a

n/a

vendor home page wiki/display/ WikiPtype/H ome

n/a

www.freebsd hp.com/go/h .org pux

www.redboo ks.ibm.com www.ibm.co m/ developerwo rks/aix techsupport. vendor docs services. and patches ? (see also man pages) ibm.com/ server/suppo rt? view=pSeries

wwwwww.freebsd software.hp. techpubs.sgi. csc.dg.com/c .org/handbo com com sc/ ok www.freebsd www.sgi.com custdocsasp/ .org/releases docs.hp.com / / custdocs2.as p? category=06 9docs.asp itrc.hp.com support/patc h_intro.html support.sgi.c om relnotes grelnotes

vendor phone (US)

800-426(EOL; 7378 unsupported ? (800-IBM) SERV) www.ibm.co m/developer works/ wikis/display ? /WikiPtype/H ome ?

925-6740783 (FreeBSD Mall)

800-6333600

800-800-4SGI

wikis

wiki.freebsd. ? org

TASK / OS

AIX

A/UX

DG/UX

FreeBSD

HP-UX

IRIX

Linux

Mac OS X

NCR Unix

NetBSD

OpenBSD

Reliant

SCO OpenServer

(rh) = Red Hat,

Mandrake, SUSE,...

(deb) = Debian, Libranet,...

Fujitsu Siemens. Originally called SINIX. Based on DC/OSX from Pyramid, Forked from SINIX Derived from NetBSD in 4.4BSD-Lite 1995. Darwin is the from and 386BSD. Security Open Source Siemens, and This table emphasis. foundation SVR4. To be does not This table for Mac OS X, aka MP-RAS replaced with include does not descended Solaris by external include from 2008. packages external NeXTStep from packages /usr/pkg. from /usr/ports .

SCO UnixWare 7.0.1& SCO 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 usermod Aqua: System useradd Preferences / userdel Accounts niutil (OS X Server) dscl usermod sysadm useradd userdel useradd userdel sysadm useradd scoadmin useradd

userdel adduser chage getent

userinfo usermod user vipw

adduser userdel (interactive) usermod user

userdel

Linux arch uname

Mac OS X hostinfo ioreg -bls

NCR Unix prtconf devstat

NetBSD dmesg more

OpenBSD sysctl hw dmesg

Reliant autoconf -l showconf

SCO OpenServer hwconfig 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/* more /etc/.osm cat /kern/msgbu pcidump f acpidump uname -M

scoadmin/DC U

mpcntl -I

/usr/lib/X11/ testtools/

lshw

z35SysInfo

dmidecode lspci lspnp lsscsi lsusb lsmod

(SUSE) hwinfo /sys/devices/ * system_profil er SPHardware DataType | ? grep "Serial Number:" | awk '{print $4}' /dev/nvram (if you have it) nvram hwclock nvsetenv udev (2.6+) devmgmt scsictl ? eeprom eeprom (at boot stop or ctrl-a) reinitdev in bdm ? ? ? ? ? ?

udevtrigger

mktable

atactl

changedev

modprobe

(automatic autdodiskmo unter)

(autodetected)

mkdev

kerneld

insmod hotplug cardctl ? ? ? ? ? ? ?

? /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/fd/[012 /dev/fd/[012 ? ] ]

/dev/stdout /dev/fd/[012 ? ] /dev/stderr /dev/fd/[012 ] xf86config xf86cfg XFree86 configure

xorgcfg xorgconfig Xorg configure systemconfigdisplay xf86config XFree86 configure redhat-configxfree86 /etc/X11/?d m Linux Mac OS X pdisk rawDev dump fdisk -l Disk Utility prtvtoc NCR Unix

X -configure ?

hwconfig

NetBSD

OpenBSD

Reliant

SCO OpenServer

disklabel -r disk mbrlabel fdisk disklabel diskName dkpart -l fsname

/dev/hda (e.g. (non-root if /dev/hda1 partitions are mounted s0 under is a partition) /Volumes) cfdisk sysadm

c or d sysctl kern.rawparti tion disklabel -wr c

/dev/ios0/rsd isk???s7 (???=000999)

/dev/1s# (#=0,1,...)

(labels unused)

disklabel -E diskName

dksetup

divvy

fdisk e2label (labels unused)

fdisk edvtoc prtvtoc mkpart updatescsi labelit

mbrlabel disklabel -E diskName dksetup divvy

parted (if you have it) cfdisk fdisk pdisk (on a MAC) (deb) macfdisk (on a MAC) (md) diskdrake Linux /boot/vmlinu z* /boot/bootlx Mac OS X NCR Unix /unix /stand/unix /stand/unix /mach_kerne (see /etc/lilo.conf l or /boot/grub/ menu.lst) /netbsd /bsd /unix NetBSD fdisk -e diskName

pdisk

fdisk

disklabel -i

dkpart -e

divvy

OpenBSD

Reliant /unix

SCO OpenServer

/proc/*

/usr/sbin/sys sysdef ctl launchctl limit

sysctl

sysctl

idtune

/etc/conf/cf. d/configure x

/proc/sys/*

sysctl

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

sysdef -i

mem= (in nvram lilo.conf or bootargs="m ? /boot/grub/g axmem=MB " rub.conf) lsmod modprobe insmod kextload ? kextstat ?

machine memory (at the "boot" prompt) modstat

modstat

modadmin

modload

modload

modadmin

rmmod kextunload modprobe -r ? modunload modunload ? modadmin

(rh) mkbootdisk (deb) fdisk -A bless (and lilo to manipulate mbr) dklayout

fdisk -i installboot

/usr/mdec/in stallboot5 /usr/mdec/bi osboot5

dksetup

/etc/rc* (but /System/Libr /etc/rc* may vary) ary/ /etc/init.d/ StartupItems /etc/init.d /*, /Library/Start upItems/, /etc/rc* /etc/rc /etc/rc.* /etc/rc.d/* /etc/rc* /etc/netstart /etc/rc* /etc/rc*

(rh) service (rh) chkconfig (deb) sysv-rc- launchctl conf

launchctl

shutdown Ph now shutdown -y halt g0 -i0 halt poweroff (set in /etc/inittab) 0: halt s,S,1: vendordependent 1: single-user 2-5*: multiuser ? 6: reboot

shutdown -p shutdown now hp now

shutdown -i0

-1: (set in -1: 0: powerpermanently /etc/inittab) permanently down insecure s,S: single0: shutdown 0*: insecure insecure user s,S: singleuser 1: sys admin 2*: multiuser 3: share NFS 4: userdefined 5: firmware 6: reboot 1*: secure 2: highly secure 0*: insecure 1: sys admin

1*: secure 2: highly secure

2*: multiuser 3+4*: userdefined 5: firmware update 6: reboot ?

sysctl 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) who -r swapon -s ls -l /var/vm swap -s swap -l swapctl -l pstat -s

sysctl kern.securele who -r vel /usr/share/z oneinfo/ ? /etc/localtim e swap -s swap -l swapctl

who -r

cat /proc/memin vm_stat fo

swap -l

swapctl cat /proc/swaps free taskset ? (sched-utils) ? ? ? ? sar -r systat swap

swap -l

Linux

Mac OS X

NCR Unix

NetBSD

OpenBSD

Reliant

SCO OpenServer htfs (OpenServer 5) vxfs

ext2

ufs vxfs ffs (was ufs) ffs (was ufs)

vxfs

ext3 ReiserFS LVM, LVM2 EVMS VxVM ($)

hfs+

ufs (root)

vdisk ? VxVM ccd, raidframe ccd raid softraid /etc/vfstab /etc/dktab /etc/mnttab /etc/default/ filesys /etc/vfstab (local) /etc/rmtab (remote) vdisk vdisk

/etc/fstab

NetInfo

/etc/vfstab

/etc/fstab

/etc/fstab

e2fsadm

Disk Utility

vxva

ccdconfig

ccdconfig

dkconfig

lvcreate

pdisk

raidctl

raidctl

dkmirror

lvremove lvextend

diskutil

dkconfig

bioctl

dkmap ?

mke2fs mkreiserfs mkdosfs mkfs.* fsck debugfs e2undel

newfs newfs_hfs newfs_mdos fsck fsdb clri mkfs

newfs makefs newfs

mkfs newfs

divvy (OpenServer 5) mkfs

fsck fsdb clri

fsck fsdb clri scan_ffs

fsck fsdb

dd if=/dev/zero mkfile of=filename

dd if=/dev/zero

dd mkfile if=/dev/zero

dd if=/dev/zero bs=1024k of=filename of=filename count=desire bs=1024 bs=1024 d 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=1m bs=1024 count=desire count=desire count=desire d count=desire d d d dd if=/dev/zero of=filename bs=1 count=1 seek=desired1 (sparse file)

(automatic mount mount -F automounter /mnt/cdrom cdfs )

mount -F hs ...

(deb) mount /cdrom

/dev/cdrom/ cdromX

sysadm

diskutil mount /cdrom /dev/disk1s0 mount -t mount cd9660 -o ro /dev/cd0a /dev/cd0a path path mount /dev/cd0 path

diskutil eject /dev/disk1s0 eject /Volumes/th ? eCDmountpo int

eject cdrom

cdio eject ? ?

eject cd0 eject -n

eject cd0 eject /dev/rcd0c

mkisofs

makefs -t cd9660

mkhybrid -o image .iso dir

image_file directory ;

hdiutil

mount -o loop pathToIso

hdiutil

? vnconfig -c vnd0

vnconfig vnd0 ? image .iso && mount -t cd9660 /dev/vnd0c mountPoint

mountPoint

image_file ; mount -t cd9660 /dev/vnd0a mountPoint

getfacl setfacl

chmod fsaclctl (10.6)

n/a

(treat as SCSI ? device)

Linux

Mac OS X

NCR Unix

NetBSD

OpenBSD

Reliant /etc/dfs/dfst ab

SCO OpenServer

NetInfo: /etc/dfs/dfst /exports ab /etc/exports Netinfo: /etc/exports /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`

/etc/exports

/etc/dfs/shar etab

/etc/exports

share kill -HUP `cat /var/run/mo shareall untd.pid`

exportfs -a

/etc/nfs start

cat /proc/mount nfsstat s /etc/nsswitc h.conf NetInfo /etc/resolv.c onf ifconfig ethtool ifconfig -a netstat -a

nfsstat /etc/nsswitc h.conf

nfsstat

showmount nfsstat

tcpconfig

/etc/resolv.c /etc/netconfi /etc/resolv.c g onf /etc/resolv.c onf /etc/netconfi onf g (obsolete) ifconfig -a ildconfig netstat -in ifconfig -A ifconfig -a netstat -in ifconfig -a inetstat -in etherstat cmxinfo ifconfig -a netstat -in Network Config. Mgr. (GUI)

ifconfig

System Preferences: ifconfig Network

edit /etc/rc.conf (ifconfig*)

ifconfig

sysadm

ifconfig

(rh) redhatconfignetwork (fedora) systemconfignetwork

NetInfo

tcpconfig

ifconfig (temp.)

edit edit /etc/ifconfig. /etc/hostna interface me.driver

vi /etc/default/i netconfig net

(rh) edit: / etc/hosts,

/etc/sysconfi g/network, /etc/sysconfi g/ networkscripts/ ifcfg-eth0 (deb) edit /etc/network /interfaces; /etc/init.d/ne tworking restart dhcpcd dhclient ? ? dhclient dhclient interface (runtime) add dhcp to /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 ethereal) etherape

tcpdump

tcpdump

tcpdump

tcpdump

tcpdump

route

tcpconfig

netstat -r

netstat -r

(rh) /etc/sysconfi g/network (rh) netstat -r /etc/sysconfi g/staticroutes (deb) /etc/init.d/ne twork (deb) /etc/network

/etc/inet/def route show aultrouter

route show

/etc/inet/gat /etc/rc.conf e*

netstat -r /etc/mygate

netstat -r

netstat -r

/etc/mygate

/etc/issue.ne /etc/issue t (telnet) (ftp varies; ~ftp/etc/issu can use tcp e /etc/ftpwelc wrappers) ome

/etc/motd

/etc/issue.ne t

/etc/ftpwelc /etc/ftpwelc ome ome /etc/issue ?

/etc/issue if enabled via ~ftp/etc/msg if= in s/welcome /etc/gettyta b date date

ntpdate

System Preferences/ Date & Time ?

rdate netdate

ntpdate ntpd timed (obs)

rdate ? ntpd timed ?

Linux (2.6+) auditd /var/log/faill og

Mac OS X

NCR Unix

NetBSD

OpenBSD mtree

Reliant

SCO OpenServer

? /etc/security

(run nightly)

/etc/shadow NetInfo (may vary)

/etc/master. passwd /etc/shadow (/etc/spwd.d b)

/etc/master. passwd /etc/shadow /etc/shadow (/etc/pwd.db )

/etc/pam.d/s ? ystem-auth

/etc/login.co ? nf

/etc/ttys /etc/securett /etc/default/l /etc/default/l /dev/default/ /etc/ttys /etc/ttys (doesn't y ogin ogin login affect ssh) Aqua / iptables System Prefs ipf pfctl / Sharing / ipchains /etc/ipf.conf /etc/pf.conf Firewall /etc/ipf6.con ipfwadm ipfw ? ? ? f (rh) redhatconfigsecuritylevel pfctl (3.0+) /etc/pf.conf (3.0+) Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer swconfig (OpenServer 5) displaypkg

(rh) rpm -a -i

ls displaypkg /Applications Apple System pkginfo Profiler

pkginfo -l

(rh) rpm -qa

sysadm

(rh) yum list system_profil installed er ls (deb) dselect /Network/Ap plications (deb) aptitude /Network/Us ers/*/ pkg_info pkg_info

pkginfo

(deb) dpkg -l Applications (gen) ls /Users/*/App /var/db/pkg/ lications * (gen) eix -I (deb) dpkg -search file (deb) apt-file update && apt-file search file ? (rh) rpm -qif ? file (gen) equery b file (gen) qfile file (rh) rpm -hiv installpkg (rh) yum install pkg drag-anddrop /Applications / Utilities/ pkgadd pkgplus pkg_add /usr/pkgsrc && make pkg_add /usr/ports && make pkgadd sysadm custom installpkg

pkg_chk pkg_info -Fe file pkg_info -E file ? ?

(deb) dselect

SCOadmin (GUI)

(deb) apt-get Installer install pkg (deb) dpkg -i www.linux.or fink.sourcefo g rge.net linux.tucows. com sourceforge. darwinports. net opendarwin rpmfind.net (deb) ftp.debian.or g .org ftp://ftp.Net BSD.org/ pub/pkgsrc ftp://ftp.netb ftp://ftp.ope sd.org/pub/ nbsd.org/ NetBSD/pack pub/OpenBS ages D/<version>/ packages www.caldera .com/ skunkware

? (deb) darwinports. packages.deb com ian.org (gen) packag es.gentoo.or g


3

(gen) gentoo3 portage.com (md)easyurp mi.zarb.org cc gcc /usr/bin/cc (gcc) /usr/bin/cc (Metaware) /usr/bin/cc (gcc) /usr/bin/cc /usr/bin/cc /usr/bin/cc

(rh) rpm -q

sw_vers

cat /kern/version uname -a

uname -a pkginfo | grep EKS

(rh) cat Apple:About /proc/version This Mac (rh) cat ls /etc/redhat- /Library/Rece release ipts (deb) dpkg -s uname -a lsbom cat /System/Libr ary/ CoreServices / SystemVersio n.plist apt-get update System Preferences / pkgadd Software Update pkginfo -l

/etc/release sysctl -n kern.version swconfig -P

cvs

cvs

pkgadd

pkgadd; pkgrm

apt-get upgrade (rh) up2date (rh) yum update (md) urpmi

softwareupd pkgplus ate

patch

cvsup sup cvsync patch pkg_add

sysadm pkgadd; pkgrm

ldconfig ldd lsmod otool -L

ldd ldconfig

ldd nm ldconfig

ldd ldconfig ldd ?

$LD_LIBRARY $DYLD_LIBRA _PATH RY_PATH /etc/ld.so.co man dyld nf

$LD_LIBRARY _PATH /etc/ld.so.co $LD_LIBRARY nf $LD_LIBRARY $LD_LIBRARY ? _PATH _PATH _PATH

strace

ltrace

ktrace; kdump (<=10.4) dtruss; dtrace (>=10.5) fs_usage

ktrace

ktrace

truss

ktruss truss kdump

kdump systrace

scstat truss

/etc/profile

/etc/default/l /etc/profile ogin

/etc/profile /etc/skel/*

/etc/default/l ogin /etc/profile ?

/etc/security /etc/profile /etc/skel/* /usr/bin/defa / ults /etc/skel/ /etc/security login.conf / /etc/profile.d /*

/etc/login.co $HOME/.prof nf ile

/etc/csh.logi /etc/csh.logi /etc/.login n n /var/log/sysl og /var/adm/str eams

/etc/csh.logi /etc/csh.logi ? n n

? /usr/adm/sys log

/var/log/mes sages

/var/log/syst em.log

/var/adm/us ererr

/var/log/mes /var/log/mes /var/adm/log sages sages /messages

/var/adm/log /osmlog

/usr/adm/me ssages /var/log/mail log dmesg Console

/etc/.osm

odm

dmesg

dmesg

sysadm

(deb) reportbug

/var/log/cras errpt h.log, dmesg

cat /kern/msgbu sendbug f

log3

send-pr

WebSysAdmi dmesg n

vmstat

vm_stat; nfsstat;

iostat; sar; pinfo -v; netstat; systat;

vmstat; fstat; iostat; mpstat; dkstat;

procinfo -D

fs_usage; sc_usage;

modstat; netstat;

netstat; vmstat; top; nfsstat; fstat; pstat;

sar; netstat; scstat

sar

top

top

nfsstat; pppstat;

nfsstat

systat; top; sar

htop

Activity Monitor (10.3+)

smtpstat; snmpstat;

vmstat;

pstree

Process Viewer (10.2- uustat; top )

lsof netstat -atup lsof fuser

fstat sockstat fstat fuser ?

osascript -e 'tell /usr/X11R6/b application ? in/xmessage "Finder" to display dialog "msg "' Linux Mac OS X NCR Unix

xmessage

/usr/X11R6/b ? in/xmessage

NetBSD www.netbsd. org/

OpenBSD

Reliant

SCO UnixWare

www.linuxdo www.darwinf c.org/ o.org/

FAQ/LinuxFAQ

faq.shtml

docs

www.debian. www.macosx ? org/doc/ hints.com FAQ

www.openbs ? d.org/faq

pcunix.com/S COFAQ/

www.linuma nagers

www.netbsd. www.openbs org/ d.org/

.org lists.apple.co ? m

MailingLists

mail.html ? ?

www.linux.or g/ help/lists.ht ml www.linuxm anagers.org/ pipermail/lin uxmanagers lists.debian.o lists.apple.co ? rg m www.netbsd. www.openbs org/ d.org/ MailingLists mail.html

www.linuxm developer.ap anpages.com ple.com/ / documentati on/Darwin/ Fedora Core Reference/M ? 4: anPages linuxcomman d.org/ www.openbs man.netbsd. d.org/cgi? org bin/man.cgi uw714doc.sc o.com/en/Na vpages/

org

d.org/cgibin/man.cgi

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 x.* (esp comp.sys.ncr openbsd.mis c.* nix.sinix o.misc netbsd.misc .answers) c lucky.openbs d.misc www.apple.c om/ usergroups www.omnigr www.debian oup.com/ ? help.org developer/m ailinglists www.themac intoshguy. com/lists/X.h tml www.linuxjo www.macwo urnal.com rld.com www.linuxmag.com www.debian planet.org www.stepwis e.com www.daemo undeadly.org ? nnews.com www.netbsd. org/gallery/ groups.html

undeadly.org ?

www.linux.or g www.debian. org gentoo.org www.redhat. com www.apple.c om

ncr.com teradata.com

www.caldera .com/ products/ope nunix www.netbsd. www.openbs www.fujistuorg d.org siemens.com

www.apple.c om (SUSE) www.novell.c om/linux

www.netbsd. www.openbs www.fujistuorg d.org siemens.com

tldp.org

developer.ap www.info.ncr ple.com/ .com/ darwin eCRM-

service.fujits u-siemens www.netbsd. www.openbs .com org/ d.org/ Security docum.html its.siemens.c om/lobs/its/ its_sc/eks_en /unix_en.htm www.openbs d.org/ errata.html

www.linuxdo www.info.ap OSHWc.org/ ple.com/ Browse rpmfind.net/l support/dow Byinux/RPM nloads.html Results.cfm www.apple.c ?pl=&PID=&ti om/support/ tle= security/secu &release= rity.html &pl=Softwar e %20-%20 MPRAS&sbrn=3 1-800-MYAPPLE

www.caldera .com/support

www.openbs d.org/ security.html (Germany)

? -5282

fedoraprojec t.org/ wiki.osx86pr ? wiki/Main_P oject.org age (fed) susewiki.org (SUSE) ? www.openbs ? d-wiki.org ?

Linux

Mac OS X

NCR Unix

NetBSD

OpenBSD

Reliant

SCO OpenServer

Solaris

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

Solaris 2.02.6, 7, 8, 9, 10, 11

Solaris 1.*

(Digital Unix, OSF/1)

OpenSolaris (SunOS 5.*)

BSD-based

(4)= 4.0F/G

SVR4-based. An opensource version can be found at illumos.org

(5)= 5.0A

Cray Inc., formed from An early DEC the March Unix, 2000 merger superceded of Tera OS notes by Digital Computer Unix (now Company Tru64). and Cray Research

solstice

checklist

checklist /etc/install/i nstall ? xmenu administrativ e GUI

admintool smc (8 01/01+) ?

(5) sysman

useradd userdel

useradd adduser edit userdel /etc/passwd and create home removeuser directory dxaccounts

adduser

xadmin

removeuser udbgen

usermod getent logins /usr/sadm/bi n/smuser (9+) groupadd

udbrstrict nu scripts managing users

Solaris prtconf -v /usr/platfor m/`uname i`/ sbin/prtdiag v (sun4u and sun4d only) arch -k

SunOS 4

Tru64 dia -R full vmstat -P

Ultrix

UNICOS machid getconf

OS / TASK

hwmgr -get category (5) hwmgr show

uname -a

psrinfo -v

devices list hardware configuratio n

isainfo -v

dmesg (if you're lucky) psrinfo

dmesg (if you're lucky)

dmesg iostat -En prtfru cfgadm -l /etc/path_to _inst

pset_info sys_check /usr/bin/X11 /dxsysinfo

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: drvconfig; devlinks; {disks, tapes, ports}

(3.2.*) scu scan edt (4.0) scu scan edt ; disklabel -rw rzXX label (for disks) (5.x) dsfmgr - /dev/MAKED /dev/MKDEV ? k; disklabel - EV rw dskn auto add device without reboot

/usr/lib/syms m/bin/hot_a dd (RDAC) /etc/symsm/ rmparams (RDAC)

hwmgr -scan scsi

devfsadm

remove device

devfsadm

remove device

/dev/rmt/0

/dev/rst0

(5.x) /dev/ntape /dev/tape

/dev/n rmtX h where n =nontpmnt rewinding, X a number, h =density

tape device

/dev/fd/[012 ? ]

stdin/ stdout/ stderr

kdmconfig (x86) fbconfig; m64config; (etc.)

X kvm config

Solaris

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

prtvtoc

dkinfo

disklabel -r

chpt -q

read a disk label

2c

s7

whole disk in partition

format

format

disklabel -rw chpt -a

/etc/labelit

label a disk

prtvtoc (x86) fdisk format disklabel -rw chpt -a /etc/labelit label a disk

format

fmthard /etc/install/i partition a nstall disk

format

disklabel -e

chpt -p

Solaris /kernel/genu nix /platform/`u name -m`/ kernel/unix

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

/vmunix /platform/`u name -m`/

/vmunix

/vmunix

/unicos

kernel

kernel/sparc v9/unix (7+) sysdef adb dxkerneltune adb r sysconfig kdb ? show/set kernel parameters

getconf cat /usr/kvm/sys /etc/system /

show/set kernel parameters

ndd adb -k

`arch -k`/conf

limit physical memory loaded kernel modules

modinfo

modload

load module

modunload

unload module

installboot /usr/platfor m/ `uname -i`

/usr/kvm/md ec make disk bootable

installboot [(4.x+) hltv] disklabel -rw - ? /lib/fs/ufs/bo t [ufs|advfs] otblk protobootblk raw_device_ file bootdevice /etc/rc* /etc/init.d/ (10+) svcadm (10+) svcs /etc/rc* /sbin/init.d; links in /sbin/rc?.d /etc/rc*

startup scripts

svcs (10+) svcadm (10+) ? ? ? ?

start/ stop/ config services

start/ stop/ config services

shutdown -y ? g0 -i5

shutdown (& power off if possible)

0: firmware monitor s,S: singleuser 1: sys admin

0: shut down 0: shut down 1: single user 1: single user 2: multi-user, 2: multi-user, no NFS no NFS 3: multi-user 3: multi-user

run levels 1 *=normal states for more detail see www.phildev .net/runlevel s.html

2: multiuser

3*: share NFS 4*: userdefined 5: powerdown if possible 6: reboot ?

6: reboot

6: reboot ?

who -r

who -r

who -r

show runlevel 1 time zone info

/usr/share/li ? b/zoneinfo/ swap -s swap -l pstat -s

/etc/zoneinfo ?

swapon -s

/etc/swapper

check swap space

pstat -s

swapon -s

/etc/swapper

check swap space

pbind

runon pset_create pset_info psradm SunOS 4 Tru64

bind process to CPU

Solaris

Ultrix

UNICOS

OS / TASK

ufs zfs (OpenSolaris ) zfs(10+) Solstice DiskSuite VxVM ($) 4.2

(4) ufs ufs (5) AdvFS

NC1FS "normal" filesystem

C2FS

Advfs ? LSM N/A ? volumebased filesystem file system description /etc/fstab /etc/fstab

/etc/fstab /etc/vfstab (local) AdvFS: /etc/fdmns

/etc/fstab

zpool (10+)

AdvFS: mkfdmn, mkfset, addvol, showfdmn LSM: volassist or volmake, volume, volplex and volsd, volprint

meta* (Solstice ? DiskSuite; Solaris Volume Mgr (9+) ) ? volume /etc/install/i manipulatio nstall n

/etc/install/i manipulatio nstall n

(7-, found in /usr/opt/SU NWmd/ sbin/) /opt/VRTSvxv a/bin/vxva (Veritas Volume Mgr) ($) newfs mkfs zfs (10u2+) fsck fsdb clri newfs mkfs AdvFS: mkfdmn UFS: newfs MFS: mfs newfs mkfs bb mkfs labelit create filesystem

file system debugging and recovery

mkfile

mkfile

dd if=/dev/zero of=filename ? bs=1024k count=desire d

create non-0length 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 /cdrom 6d0s2 /cdrom

/mnt

mount -t cdfs -o noversion /dev/disk/cdr om3c /cdrom ? ? mount CDROM

eject cdrom

eject CDROM

mkisofs2;DEV ICE=`lofiadm a /absolute_pa thname/imag e.iso` ; mount -F hsfs -o ro $DEVICE

create/moun t ISO image

create/moun t ISO image

getfacl setfacl ? ? ? ? ACL management

cfgadm luxadm stmsboot mpathadm fcinfo ? ? ? ? Fibre Channel / SAN

Solaris /etc/dfs/dfst ab

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

/etc/exports /etc/exports ? dfshares

/etc/exports

NFS share definitions

share /sbin/init.d/n fs start; ? /sbin/init.d/n fsmount start

shareall

exportfs -a

exportfs -a

NFS share command

showmount nfsstat

? /etc/nsswitc h.conf

NFS information

/etc/nsswitc (hardcoded h.conf getent dladm ndd ifconfig -a netstat -in dladm (8+) kstat -n hme0 | egrep 'ifspeed|dupl ex' edit : /etc/{resolv.c onf, hosts, edit hostname.*, /etc/hosts netmasks, nodename, dumpadm.co nf, /etc/hostna inet/ipnodes, me.* net/*/hosts} ifconfig -a into libc)

? /etc/svc.conf (obsolete) ifconfig -a netstat -in hwmgr get attribute -category network ifconfig

name /etc/hosts.us resolution enamed order

ifconfig -a netstat -in

show network interface info

(4.x) netsetup

netconfig

(5.x) sysman net_wizard or

ifconfig

netconfig

initif

change IP

sys-unconfig; reboot (this is overkill for a simple IP or hostname change)

change IP

/etc/install/i nstall

ifconfig interface dhcp

dhcpconf interface start

start DHCP client

ping ping hostname hostname p ping -c 1 acketsize 1 packetsize 1

ping hostname

ping one packet

snoop

etherfind

tcpdump

sniff network

/etc/defaultr /etc/defaultr outer outer

/etc/notrout (kernel er tweak or /etc/routes ? netstat -r route definitions

/etc/gateway adb to diable s

in.routed

forwarding)

netstat -r route add /etc/default/ telnetd /etc/default/ ftpd n/a /etc/issue ?

/etc/issue /etc/motd telnetd, ftpd banner

ntpdate

set date/time (from net: ntp or other)

rdate ? ntpdate rdate ?

Solaris audit auditd

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

auditing auditreduce

auditing

praudit

/tcb/files/aut h (only with /etc/shadow /etc/passwd /etc/shadow /etc/udb Enhanced Security)

encrypted passwords in

/etc/default/ ? passwd /etc/default/l /dev/ttytab ogin

min password length allow/deny /etc/securett /etc/securett udbrestrict root ys ys R logins ? ? ?

(9+) /usr/aset/

firewall config

Solaris

SunOS 4

Tru64

Ultrix

UNICOS

OS / TASK

pkginfo

prodreg

admintool /var/sadm/in ? stall/content s show installed software

setld -i

software

pkgchk -l -p binaryToChe ? ck

file is in which package

pkgadd

setld -l

add software

www.sunfree ware.com www.blastwa ve.org

www.tru64u nix.compaq.c om/ demos tpegsrvr.zk3. dec.com/ freeware/tbl _packages.ht ml ? ? ? precompiled binaries of GPLware and freeware

precompiled binaries of GPLware and freeware

/opt/SUNWs pro/ bin/cc2 /usr/bin/cc /usr/bin/cc /usr/bin/cc /opt/ctl/bin/ C compiler cc

showrev -p prodreg (2.6+) patchadd -p cat /etc/release

showrev -p (if you're lucky)

dupatch track -type kit dupatch track -type patch setld -i | grep patchname sizer -vB ? ?

show patch level and/or patches

installpatch (2.5.1-)

setld -i

n/a

patch tool

patchadd (2.6+) n/a pkgadd; pkgrm /usr/sadm/bi n/smpatch (9+)

dupatch ? ? patch tool

crle ldd pldd modinfo LD_PRELOAD ldd

odump -Dl ldd ? ?

configure/sh ow runtime linking fortran2000.com/ ArnaudRecip es/ sharedlib.ht ml

$LD_LIBRARY _PATH (7+ deprecated $LD_LIBRARY $LD_LIBRARY in favor of ? _PATH _PATH crle)

$LDPATH

link library path

truss

trace

cdbx

sotruss trace dtrace (10+)

truss ?

jumptrace

tracing utility

/etc/default/l ogin /etc/profile /etc/security / /etc/profile

/etc/skel /etc/profile

/etc/skel /etc/profile

udbgen nu scripts 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/.login ? /var/adm/sys log.dated (kern, auth, daemon, lpr, syslog, user)

csh global .login

/var/log/sysl og

/var/adm/sys log.dated (kern, auth, default daemon, lpr, /usr/adm/me syslog and syslog, user) ssages messages

softpanoram /var/log/sysl a.org/Logs/s /var/adm/bin /var/adm/bin og olaris_logs.sh ary.errlog ary.errlog (sendmail) tml

(4.x) uerf; dia (DECevent) (5.x) (System errors) EVM (evmget; evmshow) (Hardware errors) dia; uerf ca (Compqaq analyze)

prtdiag

dmesg

errpt

system error reporting tool

sar; iostat; kstat;

iostat; nfsstat; vmstat

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;

iostat; netstat;

performance monitoring

prstat; trapstat; vmstat; ptree iostat; netstat; vmstat

monitor

nfsstat; perfmon; ja; performance monitoring mppview; xmppview;

sam; csam

fuser lsof2
pfiles

match process to file or port

/usr/dt/bin/d ? terror.ds

X pop-up

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/ FAQ/ www.faqs.or g/faqs/Solari s2/ x86/FAQ/ www.stokely. com/ unix.sysadm. resources/ FAQs (see also faqs.org) tru64_faq.ph faq/faqp ultrix.html

.net

faqs.sun.html sunhelp.org sunsuntru64-unixmanagers@s managers@ man unmanagers decstationman

agers@ornl.g .org agers@ornl.g sunmanagers ov (majordomo) ov (majordomo) ? http://www. (majordomo .ececs.uc.edu ornl.gov/its/a ) rchives/ (majordomo) mailing-lists/ mailing list

www.sunma wwwwww.latech. nagers.org/ archive. archives.html

wwwarchive.

edu/sunman. ornl.gov:800 ornl. gov:800 html 0 0 ? mailing list archives

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 comp.sys.sun . admin, comp.unix.so admin laris

newsgroup(s ) 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/ ? Encompass/D ? ECUS

www.cug.org www.excray. com

user groups

www.sunwor ld.com sun.com/sunonnet/itworld ?

www.tru64.o ? rg

magazines

sun.com/sola ris sun.com/biga dmin sun.com/dev elopers/supp ? ort soldc.sun.co m

www.tru64u www.supelec nix .fr/decus/ .compaq.com faq/faqultrix.html www.cray.co vendor home m page

www.cray.co vendor home m page

access1.sun.c om opensolaris.o rg docs.sun.co m sunsolve.sun. com www.tru64u nix .compaq.com /docs www.cray.co m/ craydoc

N/A (EOL)

vendor docs and patches (see also man pages)

800-USA4SUN wikis.sun.co m

800-3444825

800-3444825

vendor phone (US)

www.bigup.org/menu ? /wiki/doku.p hp

wikis

Tru64 Solaris SunOS 4 (Digital Unix, OSF/1) (4) 4.0F/G (5) 5.0A Ultrix UNICOS OS \ TASK

S-ar putea să vă placă și