CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
A Sysadmin's Unixersal Translator (ROSETTA STONE)
OR What do they call that in this world?
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OPERATING SYSTEM
Contributions and corrections gratefully accepted.
Please help us fill in the blanks. New "activities" are welcome, too! framed version. PDF version. (Print the PDF version with landscape orientation for best result.) Based on Pat Wilson's version. OS versions in parentheses; e.g. 10+ means version 10 and greater; 9- means version 9 and previous. $=extra cost |
|||||||||||||
| ACTIVITY | AIX | DG-UX | FreeBSD | HP-UX | IRIX | Linux (rh) = Red Hat, Mandrake, Suse,... (deb) = Debian, Corel, Storm,... |
NetBSD | OpenBSD | Solaris | SunOS | Tru64 (Digital Unix, OSF/1) | Ultrix | OS / ACTIVITY |
| list hardware configuration |
lscfg lsattr lsdev |
dg_sysreport -g hardware | dmesg | ioscan dmesg (if you're lucky) adb stm (from the SupportPlus CDROM) |
hinv |
dmesg (if you're lucky) |
dmesg cat /kern/msgbuf |
dmesg |
prtconf -v |
dmesg (if you're lucky) | uerf -R -o full (if you're lucky) | uerf -R -o full (if you're lucky) | list hardware configuration |
| show/set EEPROM/NVRAM values |
bootlist -o -m normal |
setboot bootadmin (at boot PROM) stm |
nvram | hwclock | openprom (on OpenFirmware architectures) |
eeprom | consvar (DU 4.0D+) |
show/set EEPROM/NVRAM values |
|||||
| administrative GUI | smit smitty wsm |
sysadm | /stand/sysinstall | sam | /usr/sysadm/bin/sysmgr (6.3+) | (rh) linuxconf |
solstice |
checklist | administrative GUI | ||||
| read a disk label | lspv -l | admpdisk -o list admvdisk -o list |
disklabel -r | diskinfo pvdisplay |
prtvtoc | fdisk -l | disklabel -r | fdisk -r OR disklabel -rl | prtvtoc | dkinfo | disklabel -r | chpt -q | read a disk label |
| whole disk in partition | N/A | c | 10 | d (on i386) c (everything else) |
c | 2 | c | c | c | whole disk in partition | |||
| label a disk | mkvg | admpdisk | fdisk disklabel -wr sysinstall |
pvcreate | dvhtool | cfdisk fdisk e2label |
disklabel -wr | disklabel -wr | format | format | disklabel -wr | chpt -a | label a disk |
| partition a disk | crfs | admpdisk | fdisk sysinstall |
sam | fx -x | fdisk | disklabel | fdisk -e OR disklabel -E | format fmthard |
format | disklabel -e | chpt -p | partition a disk |
| check swap space | lsps -a | admswap -o list -buv dg_sysreport -p freeswap |
swapinfo | swapinfo | swap -s swap -l |
cat /proc/meminfo free |
swapctl | swapctl | swap -s swap -l |
pstat -s | swapon -s | check swap space | |
| kernel | /unix | /dgux | /kernel | /hpux (9) /stand/vmunix (10+) |
/unix | /boot/vmlinuz | /netbsd | /bsd | /kernel/genunix /platform/`uname -m`/ kernel/unix /platform/`uname -m`/ kernel/sparcv9/unix (7+) |
/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/boot.conf |
cat /etc/system |
sysconfig dxkerneltuner |
show/set kernel parameters | ||||
| show runlevel | who -r | who -r | /sbin/runlevel | who -r | who -r | show runlevel | |||||||
| add device without reboot | cfgmgr -v | insf -H hwpath (where hwpath is given by ioscan) | insmod | devfsadm. pre-Solaris 7, use: drvconfig; devlinks; {disks, tapes, ports} |
(3.2.*) scu scan edt |
add device without reboot | |||||||
| startup scripts | /etc/rc* | /etc/rc* | /etc/rc* /usr/local/etc/rc.d/ |
/etc/rc* (9) /sbin/rc* (10+) |
/etc/rc* | /etc/rc* (but may vary) | /etc/rc* |
/etc/rc* |
/etc/rc* | /etc/rc* | /sbin/rc* | /etc/rc* | startup scripts |
| "normal" filesystem | jfs | dg/ux | ufs | hfs | efs, xfs | ext2 | ffs (was ufs) | ffs (was ufs) | ufs | 4.2 | ufs | ufs | "normal" filesystem |
| volume based filesystem | jfs | ccd vinum |
jfs (vxfs) | xlv, xvm, xfs | ccd, raidframe |
ccd |
Solstice DiskSuite Veritas Volume Manager |
Advfs LSM |
volume based filesystem | ||||
| file system description |
/etc/filesystems | /etc/fstab | /etc/fstab | /etc/checklist (9) /etc/fstab (10+) |
/etc/fstab | /etc/fstab | /etc/fstab | /etc/fstab | /etc/vfstab | /etc/fstab | /etc/fstab | /etc/fstab | file system description |
| volume manipulation | smitty vg smitty lvm smitty jfs |
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 non-0-length empty file | prealloc | mkfile | dd if=/dev/zero of=filename bs=1024k count=desired | mkfile | dd if=/dev/zero of=filename bs=1024k count=desired | create non-0-length empty file | |||||||
| NFS share definitions | /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 | exportfs -a | kill -s HUP `cat /var/run/mountd.pid` | share shareall |
exportfs -a | /sbin/init.d/nfs start; /sbin/init.d/nfsmount start | NFS share command | |||
| mount CDROM | mount /cdrom smitty cdrom |
pfs_mountd pfsd pfs_mount |
/etc/init.d/vold start; volcheck or mount -F hsfs /dev/sr0 /cdrom |
mount CDROM | |||||||||
| encrypted passwords in | /etc/security/passwd | /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 | /tcb/files/auth (only with Enhanced Security) | /etc/shadow | encrypted passwords in | |
| allow/deny root logins |
/etc/security/user | /etc/default/login | /etc/login.access; /etc/ttys |
/etc/securetty | /etc/default/login | /etc/securetty | /etc/ttys | /etc/ttys | /etc/default/login | /etc/securettys | allow/deny root logins |
||
| default syslog | /var/adm/syslog | /var/log/messages | /var/adm/syslog/syslog.log | /var/adm/SYSLOG | /var/log/syslog /var/log/messages |
/var/log/messages | /var/log/messages | /var/log/syslog | /var/adm/syslog | default syslog | |||
| system error reporting tool | errpt | admsyslog -o report | dmesg | dmesg sysdiag (9 and early10) stm/cstm/mstm/xstm (10.20+) |
sysmon | dmesg | dmesg cat /kern/msgbuf |
dmesg | prtdiag | dmesg | uerf | uerf | system error reporting tool |
| show installed software | lslpp -L | pkginfo | pkg_info | rmfn, what (HP-UX 9) swlist (HP-UX 10+) |
versions -Ib | (rh) rpm -a -i (rh) rpm -qa (deb) dselect (deb) dpkg -l |
pkginfo | pkginfo | 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 |
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 |
pkgadd | setld -l | add software | |||
| show patch level | instfix -ivq | swlist -l product | grep someStringOfInterest |
versions -b | grep patch (6.4-) |
(rh) rpm -q (deb) dpkg -s |
cat /kern/version | showrev -p prodreg (2.6+) |
dupatch setld -i | grep patchname |
show patch level | |||||
| patch tool | installp smitty update_all |
dg_sysreport -p patches | cvsup | 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 truss |
trace (freeware) tusc (11+, freeware) |
par | strace | ktrace | ktrace ptrace |
truss sotruss |
trace | trace | tracing utility | ||
| show network interface info | ifconfig -a no -a |
ifconfig -A | lanadmin landiag lanscan netstat -in |
ifconfig -a netstat -ia |
/sbin/ifconfig | ifconfig -a | ifconfig -A | ndd ifconfig -a netstat -in |
ifconfig -a netstat -in |
show network interface info | |||
| change network address | smitty chinet | edit /etc/rc.conf (option ifconfig_interfacename) | /sbin/set_parms initial | edit: /etc/{hosts, sysid, resolv.conf, TIMEZONE}, /etc/config/{static-route.options, ifconfig-1.options}; reboot | edit: /etc/hosts, /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth0 |
edit /etc/ifconfig.interface dhclient |
edit /etc/hostname.driver | edit /etc/resolv.conf; edit /etc/hostname.*; (possibly) /usr/sbin/sys-unconfig; reboot | netsetup | change IP | |||
| ping one packet | 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 hostname packetsize 1 | ping hostname packetsize 1 | /usr/sbin/ping -c 1 |
ping one packet | |
| route definitions | netstat -r smitty route |
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 |
/etc/defaultrouter
/etc/notrouter |
/etc/routes | route definitions | |||||
| C compiler | /usr/ibmcxx/bin/cc | /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 | /opt/SUNWspro/ bin/cc ($) |
/usr/bin/cc | /usr/bin/cc | C compiler | |
| precompiled binaries of GPLware and freeware | aixpdslib.seas.ucla.edu/ aixpdslib.html www-frec.bull.com/ docs/download.htm |
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/ | www.sunfreeware.com/ | www.tru64unix.compaq.com/ demos |
precompiled binaries of GPLware and freeware | ||||||
| mailing list | AIX-L@pucc. princeton.edu (LISTSERV) |
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) |
alpha-osf-man agers@ornl.gov (majordomo) |
decstation-man agers@ornl.gov (majordomo) |
mailing list | ||
| mailing list archives | www.marist. edu/htbin/wlvindex? ADSM-L |
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) | comp.unix.aix | 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.sys.sun. admin, comp.unix.solaris |
comp.sys.sun admin |
comp.sys.dec, comp.unix.osf.osf1 | comp.unix.ultrix | newsgroup(s) | |
| user groups | www.interex.org/ | www.deadly.org/ | user groups | ||||||||||
| magazines | www.daemonnews.com/ | www.hpchronicle.com/ | www.linuxjournal.com/ | www.daemonnews.com/ | www.sunworld.com/ | magazines | |||||||
| vendor home page | www.rs6000.ibm.com/ |
www.dg.com/products/ html/dg_ux.html |
www.freebsd.org/ | www.unixsolutions.hp.com/ products/hpux/ |
www.sgi.com/software/ software.html#IRIX |
www.linux.org/ www.redhat.com/ |
www.netbsd.org/ | www.openbsd.org/ | www.sun.com/solaris/ | www.unix.digital.com/ | www.supelec.fr/decus/ faq/faq-ultrix.html |
vendor home page | |
| vendor docs and patches | techsupport.services. ibm.com/support/rs6000 |
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/ errata.html |
docs.sun.com sunsolve.sun.com |
vendor docs and patches | ||||
| vendor phone (US) | AIX: 800-237-5511 IBM hardware: 800-426-7378 |
800-633-3600 | 800-800-4SGI | 800-USA-4SUN | vendor phone | ||||||||
| ACTIVITY / OS | AIX | DG-UX | FreeBSD | HP-UX | IRIX | Linux | NetBSD | OpenBSD | Solaris | SunOS | Tru64 (Digital Unix, OSF/1) | Ultrix | OS / ACTIVITY |
See also Heiner Steven's AWK dialects page at http://www.oase-shareware.org/shell//articles/awkcompat.html
Last updated 2001.03.11 Bruce Hamilton bhami@pobox.com