AIX set all OS This custom drawing feature now works in Mozilla/Firefox, A/UX in Opera 7.0 or better, and in IE 5 or better. Use click, shift- DG/UX clear all OS click, control-click, and the "set" and "clear" buttons to select FreeBSD the desired subset of OSs. Then select "Draw table" to redraw HP-UX Draw table the window with your custom table. IRIX Linux 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! PDF version (for best results print US legal size, landscape orientation. If your browser plug-in has trouble with the PDF, then download it and load it in stand-alone acroread). 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 software, patching, tracing, logging references TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK
(rh) = Red Hat, Fujitsu Siemens. Derived from 4.4BSD- Forked from NetBSD in Derived from 4.4BSD-Lite and Mandrake, SUSE,... Originally called SINIX. Solaris 2.0-2.6, 7, 8, 9, 10, 11 Cray Inc., formed By IBM, with input from System Darwin is the Open Source Lite and 386BSD. This 1995. Security emphasis. SCO UnixWare 7.0.1& SCO (Digital Unix, OSF/1) V, BSD, etc. Runs mainly on Apple 1988-1995. Based on AT&T Data General was 386BSD. This table does not (deb) = Debian, Libranet,... Based on DC/OSX from UnixWare 7.1.1 became Caldera OpenSolaris (SunOS 5.*) Solaris 1.* An early DEC Unix, from the March 2000 OS notes SysV.2.2 with extensions from V.3, Hewlett-Packard SGI. SVR4-based (fed) = Fedora foundation for Mac OS X, aka MP-RAS table does not include This table does not Pyramid, SINIX SVR4-based. (4)= 4.0F/G superceded by Digital merger of Tera OS notes IBM RS/6000 and related aquired by EMC in 1999. include external packages from Open Unix and later became BSD-based V.4, and BSD 4.2 and 4.3 (gen) = Gentoo descended from NeXTStep external packages include external from Siemens, and SVR4. An open-source version can (5)= 5.0A Unix (now Tru64). Computer Company hardware. /usr/ports. (md) = Mandrake/Mandriva SCO again. SVR4-based. (SUSE) = SUSE from /usr/pkg. packages from /usr/ports. To be replaced with be found at illumos.org and Cray Research Solaris by 2008. (rh, FC2+, RHEL4+) system- config* /usr/sysadm/bin/sysmgr smit sam (rh) redhat-config* solstice checklist administrative GUI (6.3+) sysadm admintool checklist administrative GUI smitty Finder sysadm sysinstall linuxconf (obsolete) NetInfo Manager sysadm sushi (obs) ? WebSysAdmin scoadmin ? ? /etc/install/install wsm smh (11.31+) toolchest smc (8 01/01+) (5) sysman xmenu /usr/Cadmin/bin/* (SUSE) yast2 (deb) dpkg-reconfigure (md) drakconf useradd (5+) useradd useradd useradd useradd userdell (5+) /usr/sysadm/privbin/ useradd userdel adduser userdel usermod Aqua: System useradd userdel useradd xadmin usermod (5+) Finder chpass addUserAccount userdel sysadm scoadmin usermod edit /etc/passwd and adduser managing users lsuser /etc/adduser useradd usermod userdel Preferences / Accounts userdel userinfo getent adduser udbgen managing users userdel rmuser getprpw passmgmt adduser niutil (OS X Server) usermod usermod adduser (interactive) useradd useradd create home userdel removeuser udbrstrict mkuser edit /etc/passwd pw usermod userdel userdel logins directory removeuser chuser modprpw chage dscl sysadm user nu scripts vipw pwget /usr/Cadmin/bin/cpeople getent vipw user /usr/sadm/bin/smuser (9+) dxaccounts rmuser groupadd usrck TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK arch uname prtconf -v /usr/platform/`uname -i`/ ioscan dmesg (if you're lucky) dia -R full uname dmesg (if you're lucky) cat /var/log/dmesg sbin/prtdiag -v (sun4u and sun4d only) vmstat -P /proc/* arch -k prtconf sysctl -a adb sysctl hw autoconf -l hwconfig hwmgr -get category lscfg dmesg model lshw hostinfo prtconf dmesg dmesg showconf hw psrinfo -v machid dg_sysreport -g hinv dmidecode devstat more isainfo -v dmesg (if you're (5) hwmgr -show dmesg (if you're list hardware list hardware configuration lsattr ? cat /var/run/dmesg.boot stm (from the SupportPlus CDROM) ioreg -bls cat /var/run/dmesg.boot uname -p scoadmin/DCU devices getconf lsdev hardware pciconf -l sysinfo -vv lspci system_profiler machinetype /var/run/dmesg.boot pcidump uname -M dmesg lucky) lucky) uname -a configuration bdf (like most vendors' df) lspnp more /etc/.osm cat /kern/msgbuf /usr/lib/X11/testtools/ iostat -En psrinfo lspath usbconfig acpidump mpcntl -I getconf lsscsi z35SysInfo prtfru pset_info camcontrol devlist machinfo (11.23+) lsusb cfgadm -l sys_check /usr/bin/X11/dxsysinfo print_manifest lsmod /etc/path_to_inst (SUSE) hwinfo smbios /sys/devices/* system_profiler unique id useful for uname -u unique id useful for uname -m ? ? cat /etc/hostid uname -i ? ? SPHardwareDataType | ? ? ? ? ? hostid hostid consvar -g sys_serial_num ? ? sysctl kern.hostuuid grep "Serial Number:" | licensing lsattr -El sys0 -a systemid licensing awk '{print $4}' show/set nvram in bdm show/set dg_sysctl | setboot /dev/nvram (if you have it) eeprom EEPROM/NVRAM bootlist -o -m normal printenv/setenv (at nvram ? eeprom (at boot stop ? eeprom eeprom ? ? EEPROM/NVRAM n/a grep BOOTPATH eeprom (SPARC only) stm hwclock (4.0D+) consvar values command monitor) nvsetenv or ctrl-a) values udev (2.6+) (10+) add_drv (3.2.*) scu scan edt udevtrigger camcontrol inf -e scsiha -pr devfsadm. pre-Solaris 7 HW 11/99, use: (4.0) scu scan edt; disklabel - ioconfig -f /hw modprobe add device without reboot cfgmgr -v ? N/A atacontrol ioscan -fnC devtype; (automatic — devmgmt scsictl reinitdev mkdev drvconfig; devlinks; {disks, tapes, ports} /dev/MKDEV rw rzXX label (for disks) /dev/MAKEDEV ? add device without reboot mkdev kldload scsiadminswap kerneld autdodiskmounter) mktable atactl (auto-detected) changedev insf -C insmod (5.x) dsfmgr -k; disklabel -rw /etc/rc.d/devfs restart devtype -b bus -p /usr/lib/symsm/bin/hot_add (RDAC) hotplug dskn auto /etc/symsm/rmparams cardctl (RDAC) hwmgr -scan scsi camcontrol stop rem_drv remove device rmdev ? ? rmsf ? ? ? ? ? ? ? ? (10+) ? ? ? ? remove device camcontrol eject devfsadm /dev/rsa0 /dev/ios0/rstape001 /dev/nrmtXh where /dev/tape tape device /dev/rmt0 /dev/rdsk/c8d?s0 /dev/rmt/0 /dev/*wt* /dev/rmt/0m /dev/st0 ? /dev/rmt/c* /dev/st0 /dev/[e][n][r]st[0-9]* autoconf -1 | /dev/rct0 /dev/rmt/0 /dev/rst0 tpmnt tape device /dev/nrtape (5.x) /dev/ntape /dev/tape n=non-rewinding, X a /dev/*sa[0-9]* grep TAPE number, h=density /dev/stdin /dev/stdout stdin/ stdout/ stderr ? ? ? /dev/fd/ ? /dev/fd/ /dev/fd/ /dev/fd/ ? /dev/fd/ ? ? /dev/fd/ ? ? ? ? stdin/ stdout/ stderr [012] [012] [012] [012] [012] /dev/stderr [012] /dev/fd/[012] xorgcfg xorgconfig Xorg -configure xf86config Xorg -configure /usr/bin/X11/xsetmon system-config-display kdmconfig X kvm config ? ? ? itemap ? xf86cfg X -configure ? hwconfig (x86) ? ? ? ? X kvm config xf86config /usr/gfx/setmon xf86config XFree86 -configure fbconfig; m64config; (etc.) XFree86 -configure redhat-config-xfree86 /etc/X11/?dm TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK disklabel -r admpdisk -o list disklabel -r scsimgr (11.31+) pdisk -dump disk read a disk label lspv ? prtvtoc fdisk -l rawDev prtvtoc dkpart -l fsname prtvtoc dkinfo disklabel -r chpt -q ? read a disk label admvdisk -o list gpart show (7.0+) diskinfo Disk Utility mbrlabel disklabel diskName pvdisplay fdisk whole disk in partition hdisk[0,1,2,...] ? ? c ? 10 /dev/hda (e.g. if /dev/hda1 (non-root partitions are s0 c or d c /dev/ios0/rsdisk???s7 2 c c c s7 whole disk in partition is a partition) mounted under /Volumes) sysctl kern.rawpartition (???=000-999) /dev/1s# (#=0,1,...) sysadm fdisk fdisk disklabel -wr cfdisk edvtoc format label a disk sysinstall dvhtool disklabel -wr prtvtoc label a disk mkvg ? admpdisk pvcreate fx -x fdisk diskutil prtvtoc mbrlabel disklabel -E diskName dksetup divvy format disklabel -rw chpt -a /etc/labelit gpart add (7+) e2label mkpart (x86) fdisk sade (6.3+) updatescsi labelit parted (if you have it) fdisk cfdisk sysinstall smh (11.31+) fdisk partition a disk mklv dp admpdisk fx pdisk fdisk disklabel -i dkpart -e divvy format format disklabel -e chpt -p /etc/install/install partition a disk Finder: Apple HD SC Setup gpart add (7.0+) lvcreate pdisk (on a MAC) fdisk -e diskName fmthard sam sade (6.3+) (deb) mac-fdisk (on a MAC) (md) diskdrake TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK /boot/vmlinuz* /kernel/genunix /boot/bootlx /unix /platform/`uname -m`/ kernel /hpux (9) /unix kernel /unix /unix /dgux /boot/kernel/kernel /unix /mach_kernel /stand/unix /netbsd /bsd /unix kernel/unix /vmunix /vmunix /vmunix /unicos /stand/vmunix (10+) (see /etc/lilo.conf or /stand/unix /platform/`uname -m`/ /boot/grub/menu.lst) kernel/sparcv9/unix (7+) smh (11.31+) sysdef vi /var/Build/ sam /proc/* sysdef idtune adb show/set kernel vmo /etc/kconfig /boot/loader.conf sysdef /proc/sys/* /usr/sbin/sysctl getconf sysctl sysctl cat /etc/opt/cf.d/stune /etc/conf/cf.d/configure -x getconf dxkerneltuner adb show/set kernel ioo system.hostname;; sysctl systune launchctl limit cat /etc/system /usr/kvm/sys/ ? parameters Finder kmtune (11+) sysctl /etc/conf/cf.d/ /etc/sysctl.conf /etc/sysctl.conf cat /etc/opt/cf.d/mtune sysdef sysconfig kdb parameters schedo reboot /etc/sysctl.conf /etc/sysctl.conf /etc/launchd.conf quicktune.cfg sysdef -i ndd `arch -k`/conf kctune (11.23+) adb -k getconf mem= (in lilo.conf or nvram machine memory (at the /etc/project limit physical memory rmss ? ? ? ? ? ? ? ? ? ? ? ? ? limit physical memory /boot/grub/grub.conf) bootargs="maxmem=MB" "boot" prompt) zonecfg genkex kmadmin -s loaded kernel modules ? ? kldstat ? lsmod kextstat ? modstat modstat ? modadmin modinfo ? ? ? ? loaded kernel modules vxketadm -s kcmodule -a (11.23+) vxketadm modname load load module kmadmin -L modprobe load module cfgmgr ? ? kldload kcmodule module=loaded (11.23+) ? insmod kextload ? modload modload ? modadmin modload ? ? ? ? mkdev -l devname unload module ? ? kldunload kmadmin -U ? rmmod kextunload ? modunload modunload ? modadmin modunload ? ? ? ? unload module rmdev -l devname kcmodule module=unused (11.23+) modprobe -r boot0cfg /usr/kvm/mdec disklabel (rh) mkbootdisk 5 installboot /usr/platform/ installboot [-hltv] make disk bootable bosboot -a ? dg_sysctl mkboot dvhtool bless dklayout fdisk -i /usr/mdec/installboot dksetup ? `uname -i` (4.x+) disklabel -rw -t ? ? make disk bootable gpart bootcode (7+) (deb) fdisk -A installboot 5 protobootblk /usr/mdec/biosboot /lib/fs/ufs/bootblk raw_device_file [ufs|advfs] sade (6.3+) (and lilo to manipulate mbr) bootdevice /etc/rc* (9) /etc/rc* (but may vary) /System/Library/ /etc/rc* /etc/rc* (4-) /etc/init.d/ startup scripts /etc/rc* /etc/rc.config.d (preferred) /etc/rc* /etc/init.d/ StartupItems/*, /etc/rc* /etc/rc startup scripts /etc/inittab ? /etc/rc* /etc/rc.d/* (5+) /etc/init.d/ chkconfig /Library/StartupItems/, /etc/init.d /etc/rc.* /etc/rc* /etc/rc* /etc/rc* (10+) svcadm /etc/rc* /sbin/init.d; links in /sbin/rc?.d /etc/rc* ? /usr/local/etc/rc.d/* /sbin/rc* (10+) service /etc/rc* /etc/rc.d/* /etc/netstart /sbin/init.d/ (10+) svcs startsrc (rh) service stopsrc svcs (10+) start/ stop/ config services lssrc ? ? service (8.1+) ? chkconfig (rh) chkconfig launchctl ? ? ? ? ? ? ? ? ? start/ stop/ config services svcadm (10+) refresh (deb) sysv-rc-conf srcmstr shutdown -Ph now shutdown (& power off if shutdown (& power off if shutdown -Fh /etc/shutdown -h ? shutdown -p now shutdown -yh 0 /etc/shutdown -y -g0 -i0 - shutdown -y -g0 -i0 halt ? shutdown -p now shutdown -hp now ? shutdown -i0 shutdown -y -g0 -i5 ? ? ? ? possible) Finder p halt possible) poweroff 0: halt and power off 1: single-user mode (set in /etc/inittab) 6: reboot 0: shut down 0: firmware monitor s,S: single-user 0: power-down (set in /etc/inittab) 0: shutdown 0: power-down s,S: single-user run levels 1 c: block further logins s,S: single-user s,S: single-user -1: permanently -1: permanently s,S: single-user 0: shut down 0: shut down run levels 1 q: rescan ttys(5) file 1: sys admin 0: halt 1: sys admin *=normal states 2: multiuser 2: multiuser 1: sys admin 1: sys admin insecure insecure 1: sys admin 2: multiuser 1: single user 1: single user *=normal states ? ? 2: multiuser (no NFS) s,S,1: vendor-dependent ? 2*: multi-user 0*: insecure 0*: insecure 2*: multiuser ? ? 2: multi-user, no NFS 2: multi-user, no NFS ? for more detail 6: reboot kernel security levels: 3*: share NFS 1: single-user 3*: share NFS for more detail see -1*: permanently insecure 4*: start GUI 3*: multiuser 3: share NFS 1*: secure 1*: secure 3+4*: user-defined 4*: user-defined 3: multi-user 3: multi-user see 4: user-defined 2-5*: multiuser 4: user-defined 2: highly secure 2: highly secure 5: firmware update 6: reboot 6: reboot www.phildev.net/runlevels.html 0: insecure 5: user-defined 6: reboot 5: power-down if possible www.phildev.net/runlevels.html 1: secure 6: user-defined 5: firmware monitor 5: firmware 6: reboot 6: reboot 2: highly secure 6: reboot 3: network secure show runlevel 1 who -r who -r sysctl kern.securelevel who -r who -r /sbin/runlevel (runlevels unused) who -r sysctl kern.securelevel sysctl kern.securelevel who -r who -r who -r ? who -r ? who -r show runlevel 1 /etc/localtime /usr/lib/locale/TZ/ /usr/share/zoneinfo/ /etc/localtime /usr/share/zoneinfo/ time zone info /etc/environment ($TZ) /etc/TIMEZONE /etc/TIMEZONE /usr/lib/tztab /usr/share/zoneinfo/ /usr/lib/locale/TZ ? ? /usr/share/lib/zoneinfo/ ? /etc/zoneinfo ? ? time zone info /usr/share/zoneinfo /etc/TIMEZONE /etc/localtime /usr/share/zoneinfo/ /etc/localtime admswap -o list -buv swapon -s swap -s swapctl -l check swap space lsps -a /etc/swap -l dg_sysreport -p swapinfo swapinfo swap -s cat /proc/meminfo ls -l /var/vm swap -l pstat -s swapctl swap -s swap -l swap -s pstat -s swapon -s ? /etc/swapper check swap space freeswap pstat -s swap -l cat /proc/swaps vm_stat sar -r systat swap swap -l swap -l systat -swap free /proc/sys/kernel/core_pattern core dump management chcore coreadm coreadm core dump management /proc/pid/coredump_filter psrset -b runon bind process to CPU bindprocessor ? ? cpuset mpsched -c runon taskset (sched-utils) ? ? ? ? ? ? pbind ? pset_create ? ? bind process to CPU intctl pset_info psradm TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK ufs/ffs/ufs2 (5+) hfs ext2 ufs vxfs htfs (OpenServer 5) ufs (4) ufs NC1FS "normal" filesystem jfs ufs dg/ux ext2 efs, xfs ext3 vxfs ffs (was ufs) ffs (was ufs) 4.2 ufs "normal" filesystem vxfs (11.0+) hfs+ ufs (root) vxfs zfs (OpenSolaris) (5) AdvFS C2FS zfs (7+) ReiserFS ccd jfs (vxfs) LVM, LVM2 zfs vinum vdisk ccd (10+) Advfs volume-based filesystem jfs2 ? admvdisk LVM xlv, xvm, xfs EVMS ? vdisk vdisk Solstice DiskSuite ? N/A ? volume-based filesystem geom (5+) VxVM ccd, raidframe raid LSM VxVM ($) VxVM ($) VxVM ($) zfs (7+) softraid /etc/checklist /etc/mnttab file system /etc/filesystems /etc/fstab /etc/default/filesys /etc/fstab file system mount /etc/fstab /etc/fstab (9) /etc/fstab /etc/fstab NetInfo /etc/vfstab /etc/fstab /etc/fstab /etc/vfstab /etc/fstab /etc/fstab /etc/fstab zfs /etc/fstab /etc/dktab /etc/vfstab /etc/vfstab (local) /etc/fdmns description lsfs (7+) (local) AdvFS: description (10+) /etc/rmtab (remote) zpool (10+) smitty vg smitty lvm vinum meta* smitty jfs ccdconfig (Solstice DiskSuite; AdvFS: mkfdmn, mkfset, e2fsadm smitty storage geom (5.3+) vg*; lv*; pv* Disk Utility vxva ccdconfig dkconfig Solaris Volume Mgr (9+)) addvol, showfdmn volume manipulation mkvg; chvg; ? sysadm gstripe (5.3+) extendfs xlv_mgr lvcreate pdisk ccdconfig raidctl dkmirror ? ? ? /etc/install/install volume manipulation xvm lvremove raidctl (7-, found in LSM: volassist or volmake, reducevg; extendvg gmirror fsadm diskutil dkconfig bioctl dkmap volume, volplex and volsd, (5.3+) lvextend /usr/opt/SUNWmd/ exportvg; importvg graid3 (5.3+) sbin/) volprint mklv; chlv; rmlv zpool mkfs; crfs; rmfs /opt/VRTSvxva/bin/vxva (Veritas Volume Mgr) ($) mke2fs newfs newfs AdvFS: mkfdmn bb /etc/newfs newfs mkfs mkreiserfs newfs mkfs divvy (OpenServer 5) newfs newfs create filesystem crfs admfilesystem mkfs newfs_hfs mkfs newfs mkfs UFS: newfs mkfs create filesystem /etc/mkfs zfs (7+) newfs mkdosfs newfs_mdos makefs newfs mkfs mkfs mkfs labelit mkfs.* zfs (10u2+) MFS: mfs fsck fsck dfsck fsck fsck fsck fsck fsck file system debugging and fsck fsck fsdb fsdb fsck file system debugging and fsck fsck fsdb debugfs fsdb ? fsdb ? fsdb ? ? ? ? fsdb fsdb clri clri fsdb recovery fsdb clri e2undel clri clri clri recovery xfs_repair scan_ffs dd if=/dev/zero of=filename bs=1024 truncate -s [K|M|G] size filename mkfile dd if=/dev/zero dd if=/dev/zero count=desired create non-0-length empty mkfile create non-0-length empty lmktemp ? ? dd if=/dev/zero of=filename prealloc mkfile dd if=/dev/zero of=filename dd if=/dev/zero of=filename of=filename bs=1024 of=filename bs=1m dd if=/dev/zero dd if=/dev/zero of=filenmae mkfile mkfile dd if=/dev/zero of=filename ? ? file dd if=/dev/zero file bs=size[b|k|m|g] \ bs=1024k count=desired bs=1024 count=desired count=desired count=desired of=filename bs=1k bs=1024 count=desired bs=1024k count=desired count=desired of=filename bs=1 count=1 seek=desired-1 (sparse file) convert DOS-format text to convert DOS-format text to ? ? ? dos2ux ? dos2unix ? ? ? ? ? ? dos2unix ? ? ? ? Unix format strings dosfile.txt > unixfile.txt Unix format pfs_mountd pfsd pfs_mount mount /dev/disk/cdromXa mount -v cdrfs -o ro 4 (see man mediad) mount -F cdfs /etc/init.d/vold start; volcheck mount -t cdrom mount /cdrom mount /dev/dsk/cxtydz mount /mnt/cdrom (automatic — automounter) mount -t cd9660 -o ro mount -F hs ... or mount -t hsfs -r /mnt mount CDROM /dev/cd0 /cdrom Finder /dev/cdrom/cdromX mount /dev/cd0a path mount /dev/cd0 path ? ? mount CDROM /dev/pdsk/disk/cdrom mount_cd9660 /SD_CDROM (mounts automatically (deb) mount /cdrom /dev/cd0a path sysadm mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /dev/sr0 /cdrom mount -t cdfs -o noversion smitty cdrom diskutil mount /dev/disk1s0 /cdrom /cdrom mount -orr /dev/cdrom /mnt/cdrom when CD inserted) /dev/disk/cdrom3c /cdrom (requires "Rock Ridge extension" patches, 11+) eject cdrom cdio eject camcontrol eject devID diskutil eject /dev/disk1s0 eject CDROM ? (manually) ? ? eject eject ? eject cd0 eject cd0 ? ? eject cdrom ? ? ? ? eject CDROM cdcontrol eject [-f ] /Volumes device /theCDmountpoint eject -n eject /dev/rcd0c makefs -t cd9660 nohup pfs_mountd&; image_file directory; mkhybrid -o image.iso dir 2 mkisofs vnconfig -c vnd0 mkisofs ;DEVICE=`lofiadm -a nohup pfsd&; mkisofs vnconfig vnd0 image.iso /absolute_pathname/image.iso` ; mount - create/mount ISO image mkcd ? ? pfs_mount -t iso9660 -x unix mkisofs (freeware) mount -o loop pathToIso hdiutil ? image_file; ? ? ? ? ? ? create/mount ISO image mdconfig; mount && mount -t cd9660 F hsfs -o ro pathToIso mountPoint mountPoint mount -t cd9660 /dev/vnd0a /dev/vnd0c mountPoint $DEVICE mountPoint aclget lsacl getfacl chacl chmod ACL management aclput ? ? setfacl chacl getfacl ? n/a ? ? ? getfacl ? ? ? ? ACL management acledit getacl setfacl fsaclctl setfacl {get,set}{f,p}mac (see man acl) (-10.6) ls -e setacl scsimgr (11.31+) cfgadm fcmsutil cmgr fcstat luxadm cxfs-config systool Fibre Channel / SAN lscfg -vl fcs0 ? ? mptutil (8.0+) fcdlist ? ? (treat as SCSI device) ? ? ? stmsboot ? ? ? ? Fibre Channel / SAN showmount tdutil cxfsmgr multipath mpathadm lsattr -El fcs0 cxfs_info tdlist fcinfo tddiag TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK /etc/exports /etc/exports NetInfo: /exports /etc/dfs/dfstab /etc/dfs/dfstab /etc/dfs/dfstab NFS share definitions /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports /etc/exports ? /etc/exports NFS share definitions /etc/xtab /etc/dfs/dfstab (11.31+) Netinfo: /config/SharePoints dfshares /etc/dfs/sharetab dfshares exportfs -a exportfs -a kill -s HUP `cat share (11.31+) /etc/init.d/nfs-server reload kill -s HUP `cat share kill -s HUP `cat kill -HUP `cat share exportfs -a share /sbin/init.d/nfs start; NFS share command /usr/etc/exportfs -a exportfs -a exportfs -a /var/run/mountd.pid` exportfs -a ? exportfs -a NFS share command mknfsexp /var/run/mountd.pid` shareall exportfs -a /var/run/mountd.pid` shareall /var/run/mountd.pid` shareall /etc/nfs start shareall /sbin/init.d/nfsmount start (11.31+) (rh) /etc/rc.d/mountd reload share_nfs (11.31+) nfsstat showmount showmount NFS information /usr/etc/nfsstat nfsstat nfsstat nfsstat mount | grep nfs cat /proc/mounts nfsstat ? nfsstat nfsstat ? ? ? ? ? NFS information nfso -as nfsstat nfsstat /etc/nsswitch.conf /etc/nsswitch.conf name resolution order /etc/netsvc.conf ? /etc/netsvc.conf /etc/host.conf (4-) /etc/nsswitch.conf 6+: /etc/nsswitch.conf /etc/nsswitch.conf NetInfo tcpconfig /etc/resolv.conf /etc/resolv.conf /etc/netconfig /etc/resolv.conf /etc/nsswitch.conf (hardcoded ? /etc/hosts.usenamed name resolution order /etc/resolv.conf /etc/netconfig getent /etc/svc.conf (obsolete) /etc/nsswitch.conf (5+) 5.3: /etc/resolv.conf (obsolete) into libc) dladm ifconfig -a nwmgr (11.31+) lanadmin ifconfig -a ndd ifconfig -a show network interface no -a ifconfig -a ifconfig -a ifconfig -a show network interface netstat -i netstat -i netstat -i ifconfig -a landiag /usr/etc/ifconfig -a ifconfig ifconfig -a ildconfig ifconfig -a ifconfig -A inetstat -in netstat -in ifconfig -a netstat -in ifconfig ifconfig -a /etc/ifconfig -a ifconfig lanscan netstat -ia ethtool netstat -a netstat -in etherstat netstat -in hwmgr get attribute netstat -in info netstat -v netstat -in info netstat -in cmxinfo Network Config. Mgr. (GUI) dladm -category network lsattr -E -l entX ifconfig lanx (8+) kstat -n hme0 | egrep 'ifspeed|duplex' ifconfig (rh) redhat-config-network (fedora) system-config- edit: /etc/{hosts, network sys_id, edit: /etc/{resolv.conf, hosts, hostname.*, smitty chinet etc/hosts, edit /etc/rc.conf netconfig edit /etc/rc.conf (option resolv.conf, (rh) edit: / netmasks, nodename, /etc/sysconfig/network, System Preferences: (ifconfig*) ifconfig sysadm ifconfig (4.x) netsetup ifconfig change IP chdev -a netaddr= ifconfig ifconfig_interfacename) /sbin/set_parms initial TIMEZONE}, ifconfig dumpadm.conf, inet/ipnodes, net/*/hosts} edit /etc/hosts change IP sysadm ifconfig /etc/sysconfig/ Network tcpconfig ifconfig (temp.) (5.x) sysman net_wizard or ? initif newIP -I en# edit /etc/NETADDRS /etc/config/ NetInfo edit edit /etc/hostname.driver vi /etc/default/inet netconfig /etc/hostname.* {static-route.options, network-scripts/ sys-unconfig; reboot (this is overkill for a netconfig ifconfig ifcfg-eth0 /etc/ifconfig.interface /etc/install/install mktcpip ifconfig-1.options}; simple IP or hostname change) reboot (deb) edit /etc/network/interfaces; /etc/init.d/networking restart
converted by Web2PDFConvert.com dhclient interface (runtime) dhcpcd start DHCP client dhcpcd dhcpd dhclient ? proclaim ? ? dhclient ? ? ifconfig dhcp ? dhcpconf start ? ? start DHCP client n/a dhclient add dhcp to interface interface /etc/hostname.driver (boot time) /usr/etc/ping hostname packetsize ping hostname 10 1 (9) /usr/etc/ping -c 1 ping hostname ping -c 1 ping one packet ping -c 1 hostname ping -s -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 ping -c 1 hostname ping -c 1 hostname ping hostname packetsize 1 ? ping hostname ping one packet 1 ping hostname -n 1 (10+) hostname packetsize 1 etherfind iptrace nettl snoop tcpdump sniff network ? tcpdump tcpdump tcpdump tcpdump tcpdump tcpdump tcpdump ? snoop etherfind tcpdump ? ? sniff network ipreport netfmt tcpdump wireshark (formerly ethereal) etherape route /etc/defaultrouter edit /etc/rc.conf (option (rh) /etc/sysconfig/network tcpconfig netstat -r /etc/notrouter /etc/defaultrouter netstat -r route definitions netstat -r defaultrouter) /etc/rc.config.d/netconf /etc/config/ (rh) /etc/sysconfig/static- /etc/inet/defaultrouter route show /etc/gateways (kernel tweak or route definitions route netstat -r sysadm netstat -r static-route.options netstat -r /etc/inet/gate* /etc/rc.conf route show netstat -r netstat -r in.routed /etc/routes ? netstat -r netstat -r routes /etc/mygate adb to diable route (deb) /etc/init.d/network netstat -r /etc/mygate netstat -r forwarding) (deb) /etc/network route add /etc/motd /etc/issue.net (telnet) /etc/issue /etc/ftpwelcome /etc/issue.net /etc/default/telnetd /etc/issue telnetd, ftpd banner /etc/security/login.cfg /etc/issue ? /etc/ftpwelcome /etc/inetd.conf (telnet) /etc/issue (ftp varies; can use tcp /etc/ftpwelcome ~ftp/etc/issue /etc/issue ? n/a /etc/issue ? telnetd, ftpd banner ~ftp/etc/msgs/welcome /etc/issue if enabled /etc/ftpwelcome /etc/default/ftpd /etc/motd wrappers) via if= in /etc/gettytab date date date set date/time adjkerntz ntpdate ntpdate set date/time ntpdate date ? ntp ntpdate timeslave rdate System Preferences/ ? rdate ? ? ntpdate ? ntpdate rdate ? (from net: ntp or other) Date & Time ntpd ntpd rdate (from net: ntp or other) tzsetup netdate timed (obs) timed (obs) timed TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK audit audisp satd mtree audit auditing auditpr ? ? auditd audevent satconfig (2.6+) auditd ? ? ? ? ? auditd auditing auditselect audomon sat_reduce /var/log/faillog /etc/security auditreduce lsaudrec audsys sat_interpret (run nightly) praudit /etc/passwd (not Trusted) /.secure/etc/passwd (Trusted 9) /etc/master.passwd /etc/master.passwd /tcb/files/auth (only with encrypted passwords in /etc/security/passwd /etc/shadow /etc/shadow /etc/master.passwd /tcb/files/auth/ /etc/shadow /etc/shadow (may vary) NetInfo /etc/shadow /etc/shadow /etc/shadow /etc/shadow /etc/passwd /etc/shadow /etc/udb encrypted passwords in (/etc/spwd.db) (/etc/pwd.db) Enhanced Security) (10+) /etc/shadow (11.22+) min password length /etc/security/user ? ? /etc/login.conf /etc/default/security ? /etc/pam.d/system-auth ? ? ? /etc/login.conf ? ? /etc/default/passwd ? ? ? ? min password length allow/deny root allow/deny root /etc/security/user ? /etc/default/login /etc/login.access /etc/securetty /etc/default/login /etc/securetty /etc/ttys (doesn't affect ssh) /etc/default/login /etc/ttys /etc/ttys /etc/default/login /dev/default/login /etc/default/login /dev/ttytab /etc/securettys /etc/securettys udbrestrict -R logins /etc/ttys logins iptables ipf /etc/ipf.conf (10+) ipf, ipfs, ipfstat genfilt ipfw ipchains Aqua / System Prefs / /etc/ipf/ipf.conf firewall config ipfwadm /etc/ipf6.conf pfctl firewall config smitty ipsec4 ? ? ipf /etc/opt/ipf/ipf.conf /etc/ipf.conf Sharing / Firewall ? /etc/pf.conf ? ? ? ? ? ? wsm network pfctl (rh) redhat-config- ipfw pfctl (3.0+) (9+) /usr/aset/ (hardening tool) securitylevel (9) SunScreen 3.2 /etc/pf.conf (3.0+) TASK \ OS AIX A/UX DG/UX FreeBSD HP-UX IRIX Linux Mac OS X NCR Unix NetBSD OpenBSD Reliant SCO OpenServer Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK (rh) rpm -a -i (rh) rpm -qa ls /Applications pkg_info (rh) yum list installed Apple System Profiler rmfn, what (HP-UX 9) versions system_profiler swconfig (OpenServer 5) pkginfo ls /var/db/pkg show installed software lslpp -L ? pkginfo swlist (HP-UX 10+) showfiles (deb) dselect ls /Network/Applications displaypkg pkg_info pkg_info pkginfo -l displaypkg prodreg ? setld -i ? ? show installed software lssrc showprods (deb) aptitude /Network/Users/*/ pkginfo sysadm pkginfo admintool swm list (11.31+) /var/sadm/install/contents (deb) dpkg -l Applications (gen) ls /var/db/pkg/* /Users/*/Applications (gen) eix -I (deb) dpkg --search file (deb) apt-file update && apt- lslpp -w file versions long | file search file pkg_chk file is in which package ? ? pkg_info -W file swlist -l file | grep file ? ? pkg_info -E file ? ? pkgchk -l -p binaryToCheck ? ? ? ? file is in which package rpm -qif file grep file (rh) rpm -qif file pkg_info -Fe file (gen) equery b file (gen) qfile file (rh) rpm -hiv smitty install sysinstall (rh) yum install pkg installpkg rpm -ihv custom add software sysadm /usr/ports make swm install (11.31+) inst (deb) dselect drag-and-drop pkgadd pkg_add pkg_add pkgadd installpkg pkgadd ? setld -l ? ? add software installp -acgxYd /sourcedir n/a (no package system) pkg_add swinstall swmgr /Applications/ Utilities/ pkgplus /usr/pkgsrc && make /usr/ports && make sysadm (deb) apt-get install pkg SCOadmin (GUI) [fileset|ALL] (deb) dpkg -i Installer (md) urpmi www.linux.org perzl.org/aix/ linux.tucows.com www-1.ibm.com/servers/ sourceforge.net fink.sourceforge.net ftp://ftp.netbsd.org/pub/ aix/products/aixos/linux/ http://www.signal42.com/ ftp.freebsd.org/ freeware.sgi.com rpmfind.net ftp://ftp.openbsd.org/ www.tru64unix.compaq.com/ precompiled binaries of hpux.cs.utah.edu darwinports.opendarwin NetBSD/packages www.caldera.com/ www.sunfreeware.com demos precompiled binaries of download.html see FAQ xfree86/4.2.0/binaries/ pub/FreeBSD www.sgi.com/fun (deb) ftp.debian.org ? pub/OpenBSD/
Footnotes 1. In System V-based Unixes, 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 portage 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 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 2013.10.13. This compilation Copyright © 2000-2013 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.
converted by Web2PDFConvert.com