A Sysadmin's Unixersal Translator (ROSETTA STONE) OR What do they call that in this world? | ||||
Contributions and corrections gratefully accepted.
Please help us fill in the blanks. New "tasks" are welcome, too! |
||||
hardware, firmware, devices | disks | kernel, boot, swap | files, volumes | |
networking | security, backup | software, patching, tracing, logging | references |
TASK \ OS | AIX | Darwin | DG-UX | FreeBSD | HP-UX | IRIX | Linux |
NetBSD | OpenBSD | SCO OpenServer |
Solaris | SunOS | Tru64 |
Ultrix | OS / TASK |
OS notes | The Open Source foundation for Mac OS X, descended from NeXTStep | (rh) = Red Hat, Mandrake, Suse,... (deb) = Debian, Storm, Progeny, Corel,... |
(UnixWare 7.1) | (Digital Unix, OSF/1) (4)= 4.0F/G (5)= 5.0A |
OS notes | ||||||||||
administrative GUI | smit smitty wsm |
Aqua: System Preferences, NetInfo Manager | sysadm | /stand/sysinstall | sam | /usr/sysadm/bin/sysmgr (6.3+) toolchest /usr/Cadmin/bin/* |
linuxconf yast2 (Suse) |
scoadmin |
solstice |
checklist (5) sysman |
administrative GUI | ||||
managing users | /usr/Cadmin/bin/cpeople | /usr/sbin/{useradd,userdel} | /usr/sbin/{useradd,userdel} | ||||||||||||
list hardware configuration |
prtconf lscfg lsattr lsdev |
ioreg -bls | dg_sysreport -g hardware | dmesg cat /var/run/dmesg.boot |
ioscan |
hinv |
dmesg (if you're lucky) |
dmesg cat /kern/msgbuf |
dmesg |
hwconfig /usr/lib/X11/testtools/ |
prtconf -v |
dmesg (if you're lucky) | uerf -R -o full dia -R full (5) hwmgr -show devices |
uerf -R -o full (if you're lucky) | list hardware configuration |
show/set EEPROM/NVRAM values |
bootlist -o -m normal |
nvram | setboot bootadmin (at boot PROM) stm |
nvram printenv/setenv (at command monitor) |
/dev/nvram (if you have it) hwclock |
openprom (on OpenFirmware architectures) |
eeprom | (4.0D+) consvar | show/set EEPROM/NVRAM values |
||||||
add device without reboot | cfgmgr -v | (automatic autdodiskmounter) | insf -H hwpath (where hwpath is given by ioscan) | scsiha -pr ioconfig -f /hw |
modprobe kerneld insmod |
mkdev | devfsadm. pre-Solaris 7, use: drvconfig; devlinks; {disks, tapes, ports} |
(3.2.*) scu scan edt |
add device without reboot | ||||||
tape device | /dev/tape /dev/nrtape |
/dev/st0 | /dev/rct0 | /dev/rmt/0 | (5.x) /dev/ntape /dev/tape | tape device | |||||||||
X kvm config | xf86config | hwconfig | kdmconfig (x86) | X kvm config | |||||||||||
read a disk label | lspv -l | Disk Utility | admpdisk -o list admvdisk -o list |
disklabel -r | diskinfo pvdisplay |
prtvtoc | fdisk -l | disklabel -r | fdisk -r OR disklabel -rl | fsname | prtvtoc | dkinfo | disklabel -r | chpt -q | read a disk label |
whole disk in partition | N/A | (non-root partitions are mounted under /Volumes) | c | 10 | d (on i386) c (everything else) |
c | /dev/1s# (#=0,1,...) | 2 | c | c | c | whole disk in partition | |||
label a disk | mkvg | (labels unused) | admpdisk | fdisk disklabel -wr sysinstall |
pvcreate |
dvhtool |
cfdisk fdisk e2label |
disklabel -wr | disklabel -wr | format | format | disklabel -rw | chpt -a | label a disk | |
partition a disk | mklv | pdisk | admpdisk | fdisk sysinstall |
sam | fx | parted (if you have it) fdisk pdisk (on a MAC) |
disklabel | fdisk -e OR disklabel -E | format fmthard |
format | disklabel -e | chpt -p | partition a disk | |
kernel | /unix | /dgux | /kernel | /hpux (9) /stand/vmunix (10+) |
/unix | /boot/vmlinuz /boot/bootlx |
/netbsd | /bsd | /unix | /kernel/genunix /platform/`uname -m`/ kernel/unix /platform/`uname -m`/ kernel/sparcv9/unix (7+) |
/vmunix | /vmunix | /vmunix | kernel | |
show/set kernel parameters | /usr/samples/kernel/vmtune (installed with the bos adt.samples fileset) /usr/sbin/no (network-related) |
/boot/kernel.conf |
sam sysdef kmtune (11+) |
systune | /proc/* /proc/sys/* |
/etc/sysctl.conf | /etc/conf/cf.d/configure -x |
sysdef |
dxkerneltuner sysconfig |
show/set kernel parameters | |||||
show runlevel | who -r | (runlevels unused) | who -r | who -r | who -r | /sbin/runlevel | who -r | who -r | who -r | show runlevel | |||||
make disk bootable | bosboot -a | mkboot | dvhtool | installboot /usr/platform/`uname -m`/lib/fs/ufs/bootblk raw_device_file | (4.x+) disklabel -rw -t [ufs|advfs] | make disk bootable | |||||||||
startup scripts | /etc/rc* | /System/Library/StartupItems/*, /Library/StartupItems/, /etc/rc* |
/etc/rc* | /etc/rc* /usr/local/etc/rc.d/ |
/etc/rc* (9) |
/etc/rc* /etc/init.d/ |
/etc/rc* (but may vary) /etc/init.d/ |
/etc/rc* |
/etc/rc* |
/etc/rc* | /etc/rc* /etc/init.d/ |
/etc/rc* | /sbin/init.d; links in /sbin/rc?.d | /etc/rc* | startup scripts |
csh global .login | /etc/csh.login | /etc/.login | csh global .login | ||||||||||||
check swap space | lsps -a | ls -l /var/vm | admswap -o list -buv dg_sysreport -p freeswap |
swapinfo | swapinfo | swap -s swap -l |
cat /proc/meminfo free |
swapctl | swapctl | swap -l | swap -s swap -l |
pstat -s | swapon -s | check swap space | |
"normal" filesystem | jfs | ufs hfs+ |
dg/ux | ufs | hfs | efs, xfs | ext2 | ffs (was ufs) | ffs (was ufs) | htfs | ufs | 4.2 |
(4) ufs |
ufs | "normal" filesystem |
volume-based filesystem | jfs | ccd vinum |
jfs (vxfs) | xlv, xvm, xfs | ccd, raidframe |
ccd |
vdisk | Solstice DiskSuite Veritas Volume Manager |
Advfs LSM |
volume-based filesystem | |||||
file system description |
/etc/filesystems | NetInfo | /etc/fstab | /etc/fstab | /etc/checklist (9) /etc/fstab (10+) |
/etc/fstab | /etc/fstab | /etc/fstab | /etc/fstab |
/etc/mnttab |
/etc/vfstab (local) | /etc/fstab | /etc/fstab AdvFS: /etc/fdmns |
/etc/fstab | file system description |
volume manipulation | smitty vg smitty lvm smitty jfs |
Disk Utility / pdisk | sysadm | vinum | /usr/sbin/vg* lv* pv* extendfs fsadm |
xlv_mgr |
/opt/VRTSvxva/bin/vxva (Veritas) /usr/opt/SUNWmd/ sbin/metatool (DiskSuite) |
AdvFS: mkfdmn, mkfset, addvol, showfdmn LSM: volassist or volmake, volume, volplex and volsd, volprint |
volume manipulation | ||||||
create filesystem | crfs | mkfs | newfs mkfs |
AdvFS: mkfdmn UFS: newfs MFS: mfs |
create filesystem | ||||||||||
create non-0-length empty file | lmktemp | truncate -s size[K|M|G] filename dd if=/dev/zero of=filename bs=size[b|k|m|g] \ count=desired |
prealloc | mkfile | dd if=/dev/zero of=filename bs=1024k count=desired | dd if=/dev/zero of=filename bs=1024k count=desired | dd if=/dev/zero of=filenmae bs=1024 count=desired | mkfile | dd if=/dev/zero of=filename bs=1024k count=desired | create non-0-length empty file | |||||
mount CDROM | mount /cdrom smitty cdrom |
(automatic autdodiskmounter) | mount /cdrom mount_cd9660 /dev/acd0? /cdrom |
pfs_mountd pfsd pfs_mount |
(mounts automatically when CD inserted) | mount /cdrom | mount -t cd9660 -r /dev/cd0a /path | mount /dev/cd0 path | /etc/init.d/vold start; volcheck or mount -F hsfs /dev/sr0 /cdrom |
mount CDROM | |||||
NFS share definitions | /etc/exports /etc/xtab |
NetInfo | /etc/exports | /etc/exports | /etc/exports | /etc/exports | /etc/exports | /etc/exports | /etc/exports | /etc/dfs/dfstab | /etc/exports | /etc/exports | NFS share definitions | ||
NFS share command | /usr/sbin/exportfs -a | kill -s HUP `cat /var/run/mountd.pid` | exportfs -a | exportfs -a | /etc/init.d/nfs-server reload (rh) exportfs -a |
kill -s HUP `cat /var/run/mountd.pid` | exportfs -a /etc/nfs start |
share shareall |
exportfs -a | /sbin/init.d/nfs start; /sbin/init.d/nfsmount start | NFS share command | ||||
name resolution order | /etc/netsvc.conf | NetInfo | /etc/host.conf | /etc/nsswitch.conf | 6+: /etc/nsswitch.conf 5.3: /etc/resolv.conf |
/etc/nsswitch.conf /etc/resolv.conf |
/etc/resolv.conf | /etc/nsswitch.conf | /etc/svc.conf | name resolution order | |||||
show network interface info | ifconfig -a no -a |
ifconfig -a | ifconfig -A | lanadmin landiag lanscan netstat -in |
ifconfig -a netstat -ia |
/sbin/ifconfig | ifconfig -a | ifconfig -A |
ifconfig -a |
ndd ifconfig -a netstat -in (8+) kstat -n hme0 | egrep 'ifspeed|duplex' |
ifconfig -a netstat -in |
show network interface info | |||
change network address | smitty chinet | System Preferences: Network NetInfo |
sysadm | edit /etc/rc.conf (option ifconfig_interfacename) | /sbin/set_parms initial | edit: /etc/{hosts, sys_id, resolv.conf, TIMEZONE}, /etc/config/{static-route.options, ifconfig-1.options}; reboot |
(rh) edit: /etc/hosts, /etc/sysconfig/network, |
edit /etc/ifconfig.interface dhclient |
edit /etc/hostname.driver |
ifconfig netconfig |
edit: /etc/{resolv.conf, hosts, hostname.*, nodename, dumpadm.conf, net/*/hosts} /usr/sbin/sys-unconfig; reboot |
(4.x) netsetup (5.x) sysman net_wizard or netconfig |
change IP | ||
ping one packet | ping -c 1 hostname | ping -c 1 hostname | ping -s -c 1 hostname | ping -c 1 hostname | ping hostname 10 1 (9) ping hostname -n 1 (10+) |
ping -c 1 hostname | ping -c 1 hostname | ping -c 1 hostname | ping -c 1 hostname | ping -c 1 hostname | ping hostname packetsize 1 | ping hostname packetsize 1 | /usr/sbin/ping -c 1 |
ping one packet | |
route definitions | netstat -r smitty route |
sysadm | edit /etc/rc.conf (option defaultrouter) | /etc/rc.config.d/netconf | /etc/config/ static-route.options |
(rh) /etc/sysconfig/network (rh) /etc/sysconfig/static-routes (deb) /etc/init.d/network (deb) /etc/network |
netstat -r route show |
netstat -r | /etc/defaultrouter
/etc/notrouter |
/etc/routes | route definitions | ||||
telnetd, ftpd banner | /etc/security/login.cfg | /etc/issue | /etc/default/telnetd /etc/default/ftpd |
telnetd, ftpd banner | |||||||||||
encrypted passwords in | /etc/security/passwd | NetInfo | /etc/shadow | /etc/master.passwd | /etc/passwd (not Trusted) /secure/etc/passwd (Trusted 9) /tcb/files/auth/ (10+) |
/etc/shadow | /etc/shadow (may vary) | /etc/master.passwd (/etc/pwd.db) | /etc/master.passwd (/etc/pwd.db) | /etc/shadow | /etc/shadow | /tcb/files/auth (only with Enhanced Security) | /etc/shadow | encrypted passwords in | |
allow/deny root logins |
/etc/security/user | /etc/ttys (doesn't affect ssh) | /etc/default/login | /etc/login.access; /etc/ttys |
/etc/securetty | /etc/default/login | /etc/securetty | /etc/ttys | /etc/ttys | /dev/default/login | /etc/default/login | /etc/securettys | allow/deny root logins |
||
show installed software | lslpp -L | ls /Applications | pkginfo | pkg_info | rmfn, what (HP-UX 9) swlist (HP-UX 10+) |
versions showfiles |
(rh) rpm -a -i (rh) rpm -qa (deb) dselect (deb) dpkg -l |
pkginfo | pkg_info |
swconfig |
pkginfo prodreg admintool |
setld -i | show installed software | ||
add software |
smitty install_all /usr/lib/instl/sm_inst installp_cmd -a -d 'device' '-c' '-N' '-g' '-X' |
/stand/sysinstall /usr/ports make pkg_add |
swinstall | inst swmgr |
(rh) rpm -hiv (deb) dselect (deb) apt-get install pkg (deb) dpkg -i |
pkg_add /usr/pkgsrc && make |
pkg_add /usr/ports && make |
custom |
pkgadd | setld -l | add software | ||||
precompiled binaries of GPLware and freeware | aixpdslib.seas.ucla.edu/ aixpdslib.html www-frec.bull.com/ docs/download.htm |
http://fink.sourceforge.net/ | ftp://ftp.freebsd.org/.0/ FreeBSD/ports/i386/ packages-4.0-release |
www.linux.org/ linux.tucows.com |
ftp://ftp.netbsd.org/pub/NetBSD/packages/ | http://www.sco.com/opensource/ | http://www.sunfreeware.com/ | www.tru64unix.compaq.com/ demos tpegsrvr.zk3.dec.com/ freeware/tbl_packages.html |
precompiled binaries of GPLware and freeware | ||||||
C compiler | /usr/ibmcxx/bin/cc | /usr/bin/cc (hacked gcc) | /usr/sde/default/usr/bin/cc | /usr/bin/cc (gcc) | /opt/softbench/bin/cc ($) /bin/cc (9) /usr/bin/cc (10+; not ANSI; kernel builder only) |
/opt/MIPSpro/ bin/cc ($) /usr/bin/cc |
gcc | /usr/bin/cc | /usr/bin/cc | /usr/bin/cc | /opt/SUNWspro/ bin/cc ($) |
/usr/bin/cc | /usr/bin/cc | C compiler | |
show patch level and/or patches |
instfix -ivq | Apple:About This Mac ls /Library/Receipts |
uname -a | swlist -l product | grep someStringOfInterest |
versions -b | grep patch (6.4-) |
(rh) rpm -q (deb) dpkg -s |
cat /kern/version | swconfig -P | showrev -p prodreg (2.6+) patchadd -p |
dupatch -track -type kit dupatch -track -type patch setld -i | grep patchname |
show patch level and/or patches |
||||
patch tool | installp smitty update_all |
System Preferences / Software Update | dg_sysreport -p patches | (cvsup or cvs to update, then rebuild) |
update (9) swinstall (10+) |
inst | (deb) apt-get update (deb) apt-get upgrade |
cvs | cvs/CTM | installpatch (2.5.1-) patchadd (2.6+) pkgadd |
setld -i dupatch |
patch tool | |||
tracing utility | trace syscalls |
ktrace | ktrace truss |
trace (freeware) tusc (11+, freeware) |
par | strace | ktrace | ktrace ptrace |
traceroute | truss sotruss |
trace | trace truss |
tracing utility | ||
default syslog | /var/adm/syslog | /var/log/system.log | /var/adm/messages | /var/log/messages | /var/adm/syslog/syslog.log | /var/adm/SYSLOG | /var/log/syslog /var/log/messages |
/var/log/messages | /var/log/messages | /usr/adm/syslog /var/adm/log/osmlog |
/var/log/syslog | (4.x+) /var/adm/messages /var/adm/syslog.dated (kern, auth, daemon, lpr, syslog, user) /var/adm/binary.errlog |
default syslog | ||
system error reporting tool | errpt | Console /var/log/crash.log, dmesg |
admsyslog -o report | dmesg | dmesg sysdiag (9 and early10) stm/cstm/mstm/xstm (10.20+) |
sysmon amsyslog availmon eventmond imdmonitor syserrpanel |
dmesg | dmesg cat /kern/msgbuf |
dmesg | dmesg | prtdiag | dmesg | (4.x) uerf; dia (DECevent) (5.x) (System errors) EVM (evmget; evmshow) (Hardware errors) dia; ca (Compqaq analyze) |
uerf | system error reporting tool |
mailing list | AIX-L@pucc. princeton.edu (LISTSERV) |
http://lists.apple.com/ | www.freebsd.org/ handbook/ eresources.html #ERESOURCES-MAIL |
hpux-admin@ dutchworks.nl (majordomo) |
www.linux.org/ help/lists.html |
www.netbsd.org/ MailingLists |
www.openbsd.org/ mail.html |
sun-managers@sunmanagers .ececs.uc.edu (majordomo) |
sun-managers@sunmanagers .ececs.uc.edu (majordomo) |
tru64-unix-man agers@ornl.gov (majordomo) http://www.ornl.gov/its/archives/ mailing-lists/ |
decstation-man agers@ornl.gov (majordomo) |
mailing list | |||
mailing list archives | www.marist. edu/htbin/wlvindex? ADSM-L |
http://lists.apple.com/ | www.freebsd. org/ search.html# mailinglists |
www.dutch works.nl/ htbin/hpsysadmin |
www.netbsd.org/ MailingLists |
www.openbsd.org/ mail.html |
www.latech. edu/sunman.html |
www.latech. edu/sunman.html |
www-archive. ornl.gov:8000 |
www-archive. ornl. gov:8000 |
mailing list archives | ||||
newsgroup(s) groups.google |
comp.unix.aix www.thp.uni-duisburg.de/ cuaix/cuaix.html |
comp.unix.bsd. freebsd.misc |
comp.sys.hp.hpux | comp.sys.sgi.admin | comp.os.linux.* (esp .answers) | comp.unix.bsd. netbsd.misc |
comp.unix.bsd. openbsd.misc |
comp.unix.sco.misc | comp.sys.sun. admin, comp.unix.solaris |
comp.sys.sun admin |
comp.sys.dec, comp.unix.tru64 | comp.unix.ultrix |
newsgroup(s) |
||
user groups | www.interex.org/ | www.deadly.org/ | Encompass/DECUS | user groups | |||||||||||
magazines | http://www.macworld.com/ | http://www.daemonnews.com/ | http://www.hpchronicle.com/ http://www.interex.org/hpuxusr/ http://www.hppro.com/ |
http://www.sgi.com/support/pipeline.html | http://www.linuxjournal.com/ | http://www.daemonnews.com/ | http://www.scoworld.com/ | http://www.sunworld.com/ | http://www.tru64.org/ | magazines | |||||
vendor home page | www.rs6000.ibm.com |
http://www.apple.com/ | www.dg.com/products html/dg_ux.html |
http://www.freebsd.org/ | www.unixsolutions.hp.com/ products/hpux |
www.sgi.com/software/ software.html#IRIX |
www.linux.org/ www.redhat.com/ |
http://www.netbsd.org/ | http://www.openbsd.org/ | http://www.sco.com/ | http://www.sun.com/solaris/ | http://www.tru64unix .compaq.com/ |
www.supelec.fr/decus/ faq/faq-ultrix.html |
vendor home page | |
vendor docs and patches | techsupport.services. ibm.com/support/rs6000 |
http://www.apple.com/support/ security/security.html |
www.freebsd.org/handbook www.freebsd.org/releases/ 4.0R/errata.html |
docs.hp.com itrc.hp.com |
techpubs.sgi.com www.sgi.com/ support/patch_intro.html support.sgi.com |
www.linuxdoc.org/ rpmfind.net/linux/RPM |
www.netbsd.org/ Security |
www.openbsd.org/docum.html |
http://www.sco.com/support/ | docs.sun.com sunsolve.sun.com |
www.tru64unix .compaq.com/docs/ |
vendor docs and patches | |||
vendor phone (US) | AIX: 800-237-5511 IBM hardware: 800-426-7378 |
1-800-MY-APPLE | 800-633-3600 | 800-800-4SGI | 800-USA-4SUN | 800-344-4825 | 800-344-4825 | vendor phone (US) | |||||||
TASK / OS | AIX | Darwin | DG-UX | FreeBSD | HP-UX | IRIX | Linux | NetBSD | OpenBSD | SCO OpenServer (UnixWare 7.1) |
Solaris | SunOS | Tru64 (Digital Unix, OSF/1) (4) 4.0F/G (5) 5.0A |
Ultrix | OS \ TASK |
See also Heiner Steven's AWK dialects page at http://www.oase-shareware.org/shell//articles/awkcompat.html
This page is http://home.earthlink.net/~bhami/rosetta.html last updated 2001.08.12. This compilation Copyright © 2001 Bruce Hamilton bhami@pobox.com. Reproduce freely for personal use. Do not reproduce for commercial purposes.