AIX set all OS This custom drawing feature now works in Mozilla/Firefox, in Opera 7.0 or better, A/UX and in IE 5 or better. Use click, shift-click, control-click, and the "set" and "clear" DG/UX clear all OS FreeBSD buttons to select the desired subset of OSs. Then select "Draw table" to redraw the HP-UX Draw table window with your custom table. IRIX Draw table and remember Mac OS X

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! The table has grown so large that a PDF version is no longer useful, so is no longer available here. Framed version. OS versions in parentheses; e.g. 10+ means version 10 and greater; 9- means version 9 and previous. $=extra cost. (obs) = obsolete If not specified, commands are in one of the following directories: /usr/bin, /usr/sbin, /bin, /sbin Files referenced may be either commands, configuration files, or directly-referenced text files. Use the man command to read the man pages for details such as command options. Categories: hardware, firmware, devices disks kernel, boot, swap files, volumes networking security, backup , patching, tracing, logging references TASK \ OS AIX A/UX DG/UX FreeBSD

By IBM, with input from System V, Apple 1988-1995. Based on Derived from 4.4BSD-Lite and BSD, etc. Runs mainly on IBM &T SysV.2.2 with extensions Data General was aquired 386BSD. This table does not OS notes Hewlett-Packard RS/6000, System p, Power Systems, from V.3, V.4, and BSD 4.2 and by EMC in 1999. include external packages from and related hardware. 4.3 /usr/ports.

smit sysinstall sam administrative GUI smitty Finder sysadm wsm bsdconfig (10+) smh (11.31+)

useradd (5+) userdel (5+) adduser useradd usermod (5+) chpass userdel Finder lsuser useradd rmuser usermod managing users /etc/adduser mkuser userdel pw getprpw edit /etc/passwd chuser vipw modprpw rmuser bsdconfig (10+) pwget usrck TASK \ OS AIX A/UX DG/UX FreeBSD

ioscan dmesg (if you're lucky) -a prtconf adb dmesg lscfg model /var/run/dmesg.boot list hardware configuration lsattr ? dg_sysreport -g hardware stm (from the SupportPlus CDROM) pciconf -l lsdev bdf (like most vendors' usbconfig lspath getconf camcontrol devlist machinfo devinfo print_manifest

uname -u cat /etc/hostid unique id useful for licensing uname -m ? ? uname -i sysctl kern.hostuuid lsattr -El sys0 -a systemid show/set dg_sysctl | setboot EEPROM/NVRAM bootlist -o -m normal n/a eeprom (SPARC only) BOOTPATH stm values

camcontrol inf -e cfgmgr -v atacontrol add device without reboot ? N/A ioscan -fnC mkdev kldload insf - devtype /etc/rc.d/devfs restart

camcontrol stop remove device rmdev ? ? rmsf camcontrol eject /dev/rsa0 tape device /dev/rmt0 /dev/rdsk/c8d?s0 /dev/rmt/0 /dev/*wt* /dev/rmt/0m /dev/*sa[0-9]* stdin/ stdout/ stderr ? ? ? /dev/fd/[012] ?

Xorg -configure X kvm config ? ? ? itemap xf86config

TASK \ OS AIX A/UX DG/UX FreeBSD

scsimgr (11.31+) admpdisk -o list disklabel -r read a disk label lspv ? diskinfo admvdisk -o list gpart show (7.0+) pvdisplay whole disk in partition hdisk[0,1,2,...] ? ? c ?

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

fdisk sysinstall smh (11.31+) dp partition a disk mklv admpdisk gpart add (7.0+) lvcreate Finder: Apple HD SC Setup sade (6.3+) sam bsdconfig (10+)

TASK \ OS AIX A/UX DG/UX FreeBSD

/hpux (9) kernel / /unix /dgux /boot/kernel/kernel /stand/vmunix

smh (11.31+) /boot/loader.conf sam vmo /var/Build/ /etc/kconfig sysctl sysdef show/set kernel parameters ioo system.hostname;; Finder /etc/sysctl.conf kmtune (11+) schedo reboot kenv kctune (11.23+) getconf hw.physmem (in limit physical memory rmss ? ? ? /boot/loader.conf) genkex kmadmin -s loaded kernel modules ? ? kldstat vxketadm -s kcmodule -a (11.23+) vxketadm modname load kmadmin -L load module cfgmgr ? ? kldload kcmodule module=loaded (11.23+) mkdev -l devname kmadmin -U unload module rmdev -l devname ? ? kldunload kcmodule module=unused (11.23+) boot0cfg disklabel disk bootable bosboot -a ? dg_sysctl mkboot gpart bootcode (7+) sade (6.3+) /etc/rc* (4-) /etc/rc* (9) /etc/rc* /etc/rc.d/* (5+) startup scripts /etc/inittab ? /etc/rc* /etc/rc.config.d /usr/local/etc/rc.d/* /sbin/rc* /sbin/init.d/

startsrc stopsrc start/ stop/ config services lssrc ? ? service (8.1+) ? refresh srcmstr

shutdown -p now shutdown (& power off if /etc/shutdown -h shutdown -Fh ? poweroff shutdown -yh 0 possible) Finder halt -p

0: halt and power off 1: single-user mode 6: reboot 0: shut down run levels 1 c: block further logins s,S: single-user q: rescan ttys(5) file 1: sys admin *=normal states 2: multiuser ? ? 2: multiuser for detail 6: reboot see kernel security levels: 3*: share NFS www.phildev.net/runlevels.html -1*: permanently insecure 4*: start GUI 0: insecure 5: user-defined 1: secure 6: user-defined 2: highly secure 3: network secure show runlevel 1 -r who -r sysctl kern.securelevel who -r /etc/localtime zone info /etc/environment ($TZ) /etc/TIMEZONE /etc/TIMEZONE /usr/lib/tztab /usr/share/zoneinfo

admswap -o list -buv swapinfo check swap space lsps -a /etc/swap -l dg_sysreport -p freeswap swapinfo pstat -s -swap

kern.sugid_coredump kern.capmode_coredump chcore core dump management kern.coredump coreadm sysdumpdev kern.nodump_coredump kern.corefile

psrset -b cpuset bind process to CPU bindprocessor ? ? mpsched -c rctl (9+) intctl

TASK \ OS AIX A/UX DG/UX FreeBSD ufs/ffs/ufs2 (5+) hfs "normal" filesystem jfs ufs dg/ux ext2 vxfs (11.0+) (7+) ccd vinum jfs (vxfs) volume-based filesystem jfs2 ? admvdisk (5+) LVM zfs (7+) VxVM ($)

/etc/checklist /etc/filesystems file system /etc/fstab (9) mount /etc/fstab /etc/fstab description zfs (7+) /etc/fstab lsfs (10+) smitty vg smitty lvm vinum smitty jfs ccdconfig smitty storage geom (5.3+) vg*; lv*; pv* lsvg; varyonvg; varyoffvg volume manipulation ? sysadm gstripe (5.3+) extendfs mkvg; chvg; gmirror (5.3+) fsadm reducevg; extendvg graid3 (5.3+) exportvg; importvg zpool mklv; chlv; rmlv mkfs; crfs; rmfs

newfs crfs /etc/newfs mkfs create filesystem admfilesystem zfs (7+) mkfs /etc/mkfs newfs newfs_msdos

dfsck fsck file system debugging and fsck fsck fsck fsck fsdb recovery fsdb fsdb fsdb clri

truncate -s size[K|M|G] filename if=/dev/zero of=filename create non-0-length empty file lmktemp ? ? prealloc bs=size[b|k|m|g] \ count=desired convert DOS-format text to dosfile.txt > unixfile.txt ? ? -d '\r' < input > output dos2ux Unix format pfs_mountd pfsd mount /cdrom pfs_mount mount -v cdrfs -o ro mount_cd9660 /dev/cd0 /cdrom mount -t cdrom mount /dev/dsk/c mount CDROM Finder /SD_CDROM /dev/pdsk/disk/cdrom mount -t cd9960 /dev/cd0 smitty cdrom mountpoint mount -orr /dev/cdrom /mnt/cdrom (requires "Rock Ridge extension" patches, 11+)

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

nohup pfs_mountd&; mkisofs nohup pfsd&; create/mount ISO image mkcd ? ? mdconfig; mount pfs_mount -t iso9660 -x unix pathToIso mountPoint

aclget lsacl getfacl aclput chacl ACL management ? ? setfacl acledit getacl {get,set}{f,p}mac -e setacl scsimgr (11.31+) fcstat fcmsutil mptutil (8.0+) lscfg -vl fcs0 fcdlist / SAN ? ? showmount lsattr -El fcs0 tdutil gmultipath lspath tdlist tddiag TASK \ OS AIX A/UX DG/UX FreeBSD

/etc/exports /etc/exports NFS share definitions /etc/exports /etc/exports /etc/exports /etc/xtab /etc/dfs/dfstab (11.31+)

-s HUP `cat exportfs -a exportfs -a /var/run/mountd.pid` share (11.31+) NFS share command /usr/etc/exportfs -a exportfs -a mknfsexp zfs set sharenfs="..." zfsdataset shareall (11.31+) service nfsd start share_nfs nfsstat NFS information /usr/etc/nfsstat nfsstat nfsstat nfsstat nfso -as

/etc/netsvc.conf /etc/host.conf (4-) name resolution order ? /etc/netsvc.conf /etc/nsswitch.conf /etc/resolv.conf /etc/nsswitch.conf (5+)

ifconfig -a nwmgr (11.31+) no -a lanadmin -i netstat -i netstat -i landiag show network interface info ifconfig -a netstat -v /etc/ifconfig -a ifconfig lanscan lsattr -E -l entX netstat -in entstat ifconfig lan

smitty chinet edit /etc/rc.conf (option chdev -a netaddr= ifconfig_interfacename) ifconfig /sbin/set_parms initial change IP newIP -I en# sysadm edit /etc/NETADDRS ifconfig ifconfig mktcpip rmtcpip bsdconfig (10+)

dhclient start DHCP client dhcpcd n/a dhcpd ? service dhclient start interface

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

iptrace nettl sniff network ? tcpdump tcpdump ipreport netfmt

edit /etc/rc.conf (option defaultrouter) netstat -r /etc/rc.config.d/netconf route definitions netstat -r sysadm netstat -r route netstat -r route bsdconfig (10+) telnetd, ftpd banner /etc/security/login.cfg /etc/issue ? /etc/ftpwelcome /etc/inetd.conf

date adjkerntz ntp set date/time ntpdate date ? tzsetup ntpdate (from net: ntp or other) (obs) timed bsdconfig (10+) ntpdate TASK \ OS AIX A/UX DG/UX FreeBSD audit audisp auditpr audevent auditing ? ? auditd auditselect audomon lsaudrec audsys /etc/passwd /.secure/etc/passwd encrypted passwords in /etc/security/passwd /etc/shadow /etc/shadow /etc/master.passwd /tcb/files/auth/ (10+) /etc/shadow min password length /etc/security/user ? ? /etc/login.conf /etc/default/security allow/deny root /etc/login.access /etc/security/user ? /etc/default/login /etc/securetty logins /etc/ttys

genfilt ipfw firewall config smitty ipsec4 ? ? ipf /etc/opt/ipf/ipf.conf wsm network pfctl

TASK \ OS AIX A/UX DG/UX FreeBSD

pkg_info ls /var/db/pkg rmfn, what (HP-UX 9) show installed software lslpp -L ? pkginfo pkg info (10+) swlist (HP-UX 10+) swm list (11.31+)

lslpp -w file pkg_info -W file file is in which package rpm -qif file ? ? swlist -l file | grep which_fileset pkg which file (10+)

sysinstall smitty install /usr/ports make rpm -ihv pkg_add swm install add software n/a (no package system) sysadm installp -acgxYd /sourcedir pkg install (10+) swinstall [fileset|ALL] pkg add (10+)

perzl.org/aix/ http://www.signal42.com/ ftp.freebsd.org/ precompiled binaries of hpux.cs.utah.edu bullfreeware.com see FAQ xfree86/4.2.0/binaries/ pub/FreeBSD GPLware and freeware hpux.connect.org.uk www.ibm.com/systems/power/ DGUX-ix86/ www.freebsd.org software/aix/linux/toolbox/altlic.html

/opt/softbench/bin/cc ($) /usr/bin/cc (gcc, 9-) /usr/ibmcxx/bin/cc cc /usr/sde/default/usr/bin/cc /bin/cc (9) C compiler /usr/bin/gcc (10+) /usr/vac/bin/cc ($) /usr/local//gcc gcc /usr/bin/cc /usr/bin/clang (9.0+) ANSI; kernel builder only)

instfix -ivq swm list (11.31+) show level uname -a oslevel -s ? what /dgux swlist -l product | and/or patches emgr -l freebsd-version (10+) grep PHsomeString

csup (6.2+) freebsd-update (7+) installp update (9) patch tool smitty update_all ? dg_sysreport -p patches emgr cvsup or cvs to update, swinstall (10+) then rebuild

svnlite (10+) configure/show runtime linking ldd chatr dump -H fortran-2000.com/ ? ? ldconfig ldd (11+) ldd ArnaudRecipes/ kldstat kmadmin sharedlib.html $LD_LIBRARY_PATH (64-bit) link library path $LIBPATH ? $LIBPATH $LD_LIBRARY_PATH $SHLIB_PATH (32- or 64-bit) probevue (6+) trace ktrace caliper fprof syscalls ?=dg_strace truss caliper ktrace tracing utility ? truss (>=4.20MU06) (8+) trace (freeware) watch dtruss (8+) tusc (11+, freeware) trcrpt /etc/default /etc/security/ /etc/profile /etc/PATH define user defaults mkuser.default admuser -o set /etc/login.conf /usr/lib/skel /etc/MANPATH /etc/environment /etc/default/* csh global .login /etc/csh.login ? ? /etc/csh.login /etc/csh.login

/var/adm/syslog/syslog.log /var/adm/syslog default syslog and messages ? /var/adm/messages /var/log/messages /var/adm/sulog /var/adm/messages /var/spool/mqueue/syslog

evmshow smh (11.31+) errpt dmesg dmesg system error reporting tool errpt admsyslog -o report errclear send-pr sysdiag (9 and early10) stm/cstm/mstm/xstm EMS (from support ) glance ftp://ftp.software.ibm.com/ gpm aix/tools/perftools/perfpmr sar fstat; nfsstat; systat; ; caliper performance monitoring vmstat; ; sar; filemon; topas; ? netstat netstat; uustat (9-); ; iostat; top; sar; vmstat; trace; svmon; netpmon; uustat gstat iostat; nfsstat; netstat; proctree uustat; Glance ptree (11.31+)

lsof match process to file or port procfiles (5.2+, files only) ? sockstat -l fuser manage various logs snap ? ? ? ?

X pop-up /usr/dt/bin/dterror.ds ? ? /usr/local/bin/xmessage /usr/dt/bin/dterror.ds

Wikipedia AIX A/UX DG/UX FreeBSD

www.faqs.org/faqs/ christtrekker.users.sourceforge.net/ www-csc.dg.com/csc/ www.freebsd.org/doc/ www.faqs.org/faqs/ FAQs (see also faqs.org) aix-faq/part1/ doc/aux/faq.html dguxfaqs1.asp en_US.ISO8859-1/books/faq hp/hpux-faq/preamble.html preamble.html

blogs ? ? ? blogs.freebsdish.org ? hpux-admin@ AIX-L@pucc. dutchworks. mailing list princeton.edu n/a ? lists.freebsd.org/mailman/listinfo (majordomo) (LISTSERV) hp-ux-l www.marist. edu/htbin/wlvindex? www.dutch mailing list archives ADSM-L n/a ? lists.freebsd.org/mailman/listinfo works.nl/ marc.theaimsgroup.com/ htbin/hpsysadmin ?l=aix-l&r=1&w=2 man pages www.freebsd.org/ publib.boulder.ibm.com/infocenter/ n/a ? man.freebsd.org docs.hp.com/en/hpuxman_pages.html cgi/man.cgi aix/v7r1/topic/ com.ibm.aix.cmds/ hpuxman_pages.html alphabeticallistofcommands.htm

comp.unix.aix comp.unix.bsd newsgroup(s) and forums www.thp.uni-duisburg.de/ comp.unix.aux comp.os.aos freebsd.misc comp.sys.hp.hpux groups.google cuaix/cuaix.html forums.freebsd.org connect-community.org hp-interex.com www.freebsd.org/ encompassus.org user groups www.userblue.org n/a ? support.html#user hptechnologyforum.com forums.itrc.hp.com HP DSPP

daemonnews.org bsdmag.org www.hpchronicle.com magazines n/a n/a ? freebsdnews.net www.interex.org/hpuxusr bsdnow.tv (videos) www.hppro.com bsdtalk.blogspot.com (audio podcasts)

www.developer.ibm.com/ tech/map/aixrm.html www-941.ibm.com/ www-csc.dg.com/ vendor home page n/a www.freebsd.org hp.com/go/hpux collaboration/ csc/default.asp wiki/display/WikiPtype/Home

www.redbooks.ibm.com www.ibm.com/ www.freebsd.org/handbook www-csc.dg.com/csc/ developerworks/aix www.freebsd.org/releases/ software.hp.com vendor docs and patches (see custdocsasp/ techsupport.services. ? www.freebsd.org/security docs.hp.com also man pages) custdocs2.asp? ibm.com/ www.freebsd.org/doc/en/books itrc.hp.com category=069docs.asp server/support? www.freebsd.org/doc/en/articles view=pSeries

800-426-7378 925-674-0783 vendor phone (US) (EOL; unsupported) ? 800-633-3600 (800-IBM-SERV) (FreeBSD Mall)

www.ibm.com/developerworks/ wikis ? ? wiki.freebsd.org ? wikis/display/WikiPtype/Home

TASK / OS AIX A/UX DG/UX FreeBSD

Footnotes

1. In System V-based , run level relates to booting, shutdown, and single-user mode. In BSD, it has to do with security.

2. Freeware or separately downloadable; not part of the base OS. See the precompiled binaries task or web search.

3. Gentoo does not have precompiled packages. It compiles them on your computer. It also has some "overlays" for packages that are not (yet) in the main tree. See http://overlays.gentoo.org/

4. ioscan -funC disk may be helpful here to determine device path.

5. Architecture-specific. See http://www.openbsd.org/cgi-bin/cvsweb/src/distrib/*/*/install.md for details.

Universal Command Guide is a large book which covers several of the OSs in this table.

UnixGuide.net has a similar table covering fewer Unix versions and a somewhat different set of tasks. See unixguide.net/cgi-bin/unixguide.cgi

Colin Barschel's Unix Toolbox cb.vu/unixtoolbox.xhtml is a wonderfully detailed handbook sorted by task area and giving both commands and config file excerpts for Linux and BSD. coolcommands is a search engine giving one-line command examples: www.coolcommands.com/index.php?option=com_cc&Itemid=28

Solaris / HP-UX / FreeBSD / Linux / AIX: www.unixporting.com/quickguide.html

Solaris / HP-UX: soldc.sun.com/migration/hpux/migissues/. If that page no longer exists, get an archived version from the Internet Archive Wayback Machine at www.archive.org/web/web.php

AIX / Linux: rick.jasperfamily.org/linux/quickstart.html AIX 4.3.3 / Solaris 8: www.redbooks.ibm.com/redpapers/pdfs/redp0104.pdf AIX 5.1.0 / Solaris 8: www.ibm.com/servers/aix/products/aixos/whitepapers/aixmapping.html

Unix / DOS: yolinux.com/TUTORIALS/unix_for_dos_users.html Unix / TSO mainframe: yolinux.com/TUTORIALS/LinuxTutorialLinuxForMainframers.html

Unix history time line: www.levenez.com/unix/

Unix cheat sheet: www.rain.org/~mkummel/unix.html

Unix information: www.computerhope.com/unix.htm

Unix summary: www.math.utah.edu/lab/unix/unix-commands.html

Unix tips and tricks: sysunconfig.net

Heiner Steven's AWK dialects page: www.shelldorado.com/articles/awkcompat.html

Ben Zorn's Debugging Tools for Dynamic Storage Allocation and Memory Management: www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html

Most modern Unixes conform to the POSIX standards: en.wikipedia.org/wiki/POSIX en.wikipedia.org/wiki/Comparison_of_operating_systems en.wikipedia.org/wiki/Comparison_of_Linux_distributions

USENIX: www.usenix.org/

USENIX System Administrator's Guild: sage.org/

League of Professional System Administrators: lopsa.org/

This page is http://bhami.com/rosetta.html last updated 2014.12.14. This compilation Copyright © 2000-2015 Bruce Hamilton [email protected]. Reproduce freely for personal use. Do not reproduce for commercial purposes. LINK don't copy, or you will miss updates! Original concept by Pat Wilson. Thanks to Bitt Faulk and Mårten Svantesson for the improved JavaScript.