Rosetta Stone for Unix
Total Page:16
File Type:pdf, Size:1020Kb
Rosetta Stone for Unix This custom drawing feature now works in Mozilla/Firefox, in Opera 7.0 or better, and in IE 5 or better. Use click, shift-click, control-click, and the "set" and "clear" buttons to select the desired subset of OSs. Then select "Draw table" to redraw the window with your custom table. 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. Cray Inc., formed Mandrake, SUSE,... Derived from 4.4BSD- Forked from NetBSD in Originally called SINIX. Solaris 2.0-2.6, 7, 8, 9, 10 By IBM, with input from Apple 1988-1995. Based Derived from 4.4BSD-Lite and (deb) = Debian, Libranet,... SCO UnixWare 7.0.1& SCO from the March Darwin is the Open Source Lite and 386BSD. This 1995. Security emphasis. Based on DC/OSX from OpenSolaris (Digital Unix, OSF/1) An early DEC Unix, System V, BSD, etc. Runs on AT&T SysV.2.2 with Data General was aquired 386BSD. This table does not (fed) = Fedora UnixWare 7.1.1 became Caldera Solaris 1.* 2000 merger of OS notes Hewlett-Packard. SGI. SVR4-based foundation for Mac OS X, aka MP-RAS table does not include This table does not Pyramid, SINIX (SunOS 5.*) (4)= 4.0F/G superceded by Digital OS notes mainly on IBM RS/6000 and extensions from V.3, V.4, by EMC in 1999. include external packages from (gen) = Gentoo Open Unix and later became BSD-based Tera Computer descended from NeXTStep external packages from include external packages from Siemens, and SVR4. SVR4-based (5)= 5.0A Unix (now Tru64). related hardware. and BSD 4.2 and 4.3 /usr/ports. (md) = Mandrake/Mandriva SCO again. SVR4-based. Company and Cray (SUSE) = SUSE /usr/pkg. from /usr/ports. To be replaced with Research Solaris by 2008. (rh, FC2+, RHEL4+) system- /stand/sysinstall config* /usr/sysadm/bin/sysmgr solstice smit pw (rh) redhat-config* sysadm checklist (6.3+) Aqua: System Preferences, admintool checklist administrative GUI smitty Finder sysadm adduser rmuser sam linuxconf (obsolete) sysadm sushi (obs) ? WebSysAdmin scoadmin ? ? /etc/install/install administrative GUI toolchest NetInfo Manager smc (8 01/01+) (5) sysman wsm vipw (SUSE) yast2 xmenu /usr/Cadmin/bin/* chpass (deb) dpkg-reconfigure (md) drakconf useradd (5+) /usr/sysadm/privbin/ userdell (5+) useradd useradd useradd useradd addUserAccount useradd usermod (5+) adduser usermod useradd userdel userdel adduser xadmin Finder useradd Aqua: System userdel sysadm scoadmin lsuser useradd rmuser userdel userdel userinfo usermod edit /etc/passwd and userdel adduser udbgen managing users /etc/adduser userdel passmgmt Preferences / Accounts adduser (interactive) useradd useradd managing users mkuser userdel pw adduser usermod usermod logins create home directory removeuser removeuser udbrstrict edit /etc/passwd usermod niutil usermod userdel userdel chuser vipw chage sysadm user /usr/sadm/bin/smuser (9+) dxaccounts nu scripts /usr/Cadmin/bin/cpeople user rmuser vipw 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 dmesg (if you're lucky) prtconf -v cat /var/log/dmesg ioscan /usr/platform/`uname -i`/ dia -R full /proc/* dmesg (if you're lucky) sbin/prtdiag -v (sun4u and sun4d only) vmstat -P lshw hwconfig adb autoconf -l arch -k hwmgr -get category sysctl -a dmidecode sysctl hw hw prtconf model prtconf dmesg showconf psrinfo -v (5) hwmgr -show machid dmesg hinv lspci hostinfo dmesg scoadmin/DCU lscfg stm (from the SupportPlus CDROM) devstat more uname -p isainfo -v devices dmesg (if you're getconf list hardware configuration ? dg_sysreport -g hardware cat /var/run/dmesg.boot lspnp ioreg -bls cat /var/run/dmesg.boot dmesg (if you're lucky) list hardware configuration lsattr bdf (like most vendors' df) machinetype /var/run/dmesg.boot uname -M dmesg psrinfo lucky) uname -a pciconf -l sysinfo -vv lsscsi system_profiler pcidump /usr/lib/X11/testtools/ lsdev getconf more /etc/.osm cat /kern/msgbuf mpcntl -I iostat -En pset_info eeprom (SPARC only) lsusb acpidump z35SysInfo machinfo (11.23+) prtfru sys_check lsmod print_manifest cfgadm -l /usr/bin/X11/dxsysinfo (SUSE) hwinfo /etc/path_to_inst /sys/devices/* system_profiler uname -u SPHardwareDataType | unique id useful for licensing uname -m ? ? ? uname -i ? ? grep "Serial Number:" | ? ? ? ? ? hostid hostid ? ? ? unique id useful for licensing lsattr -El sys0 -a systemid awk '{print $3}' show/set nvram /dev/nvram (if you have it) in bdm show/set dg_sysctl | setboot eeprom EEPROM/NVRAM bootlist -o -m normal n/a ? printenv/setenv (at hwclock nvram ? eeprom (at boot stop ? eeprom eeprom (4.0D+) consvar ? ? EEPROM/NVRAM grep BOOTPATH stm values command monitor) nvsetenv or ctrl-a) values (3.2.*) scu scan edt udev (2.6+) devfsadm. pre-Solaris 7 HW 11/99, use: (4.0) scu scan edt; disklabel -rw inf -e scsiha -pr modprobe camcontrol drvconfig; devlinks; {disks, tapes, ports} rzXX label (for disks) ioscan -fnC devtype; ioconfig -f /hw kerneld (automatic — devmgmt scsictl reinitdev add device without reboot cfgmgr -v ? N/A atacontrol (auto-detected) mkdev /dev/MKDEV (5.x) dsfmgr -k; disklabel -rw /dev/MAKEDEV ? add device without reboot insf -C devtype scsiadminswap insmod autdodiskmounter) mktable atactl changedev kldload /usr/lib/symsm/bin/hot_add (RDAC) dskn auto -b bus -p hotplug /etc/symsm/rmparams (RDAC) hwmgr -scan scsi cardctl remove device rmdev ? ? ? rmsf ? ? ? ? ? ? ? ? devfsadm ? ? ? ? remove device /dev/ios0/rstape001 /dev/nrmtXh where /dev/tape tape device /dev/rmt0 /dev/rdsk/c8d?s0 /dev/rmt/0 /dev/rsa0 /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 (5.x) /dev/ntape /dev/tape n=non-rewinding, X a tpmnt tape device /dev/nrtape grep TAPE number, h=density /dev/stdin /dev/stdout stdin/ stdout/ stderr ? ? ? /dev/fd/[012] ? /dev/fd/[012] /dev/fd/[012] /dev/fd/[012] ? /dev/fd/[012] ? ? /dev/fd/[012] ? ? ? ? stdin/ stdout/ stderr /dev/stderr /dev/fd/[012] xorgcfg xorgconfig Xorg -configure system-config-display xf86config Xorg -configure /usr/bin/X11/xsetmon kdmconfig (x86) X kvm config ? ? ? itemap xf86config ? xf86cfg X -configure ? hwconfig ? ? ? ? X kvm config xf86config /usr/gfx/setmon fbconfig; m64config; (etc.) XFree86 -configure 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 diskinfo pdisk rawDev -dump disk read a disk label lspv -l ? disklabel -r prtvtoc fdisk -l prtvtoc disklabel diskName dkpart -l fsname prtvtoc dkinfo disklabel -r chpt -q ? read a disk label admvdisk -o list pvdisplay Disk Utility mbrlabel fdisk /dev/hda (e.g. if /dev/hda1 (non-root partitions are c or d /dev/ios0/rsdisk???s7 whole disk in partition N/A ? ? c ? 10 s0 c /dev/1s# (#=0,1,...) 2 c c c s7 whole disk in partition is a partition) mounted under /Volumes) sysctl kern.rawpartition (???=000-999) sysadm fdisk edvtoc fdisk dvhtool cfdisk format prtvtoc disklabel -wr label a disk mkvg ? admpdisk disklabel -wr pvcreate fx -x fdisk (labels unused) disklabel -E diskName dksetup divvy prtvtoc format disklabel -rw chpt -a /etc/labelit label a disk mkpart mbrlabel sysinstall e2label (x86) fdisk updatescsi labelit parted (if you have it) cfdisk dp fdisk lvcreate fdisk format partition a disk mklv Finder: Apple HD SC admpdisk fx pdisk fdisk disklabel -i fdisk -e diskName dkpart -e divvy format disklabel -e chpt -p /etc/install/install partition a disk sysinstall sam pdisk (on a MAC) fmthard Setup (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* /boot/bootlx /unix /kernel/genunix /platform/`uname -m`/ /kernel /hpux (9) /unix kernel /unix /unix /dgux /unix /mach_kernel /netbsd /bsd /unix kernel/unix /vmunix /vmunix /vmunix /unicos kernel /boot/kernel/kernel /stand/vmunix (10+) (see /etc/lilo.conf or /stand/unix /stand/unix /platform/`uname -m`/ /boot/grub/menu.lst) kernel/sparcv9/unix (7+) sysdef /boot/kernel.conf sam adb /proc/* sysdef idtune getconf vmo vi /var/Build/ /boot/loader.conf sysdef /usr/sbin/sysctl /etc/conf/cf.d/configure -x /etc/kconfig /proc/sys/* getconf sysctl sysctl cat /etc/opt/cf.d/stune cat /etc/system dxkerneltuner adb show/set kernel parameters ioo system.hostname;; sysctl kmtune (11+) systune launchctl limit /usr/kvm/sys/ ? show/set kernel