Rosetta Stone for Unix
Total Page:16
File Type:pdf, Size:1020Kb
This custom drawing feature now works in both Mozilla and in IE 5 or better for Solaris, HP-UX, or Windows. Use click, shift-click, control-click, and the "set" and "clear" buttons to select the desired subset of OSs. Then select "Draw table" to launch a new window with your custom table. Thanks to Mårten Svantesson <[email protected]> for the improved JavaScript. 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. 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 If not specified, commands are in one of the following directories: /usr/bin, /usr/sbin, /sbin, /bin Categories: 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 Reliant SCO UnixWare Solaris SunOS 4 Tru64 Ultrix UNICOS OS / TASK Cray Inc., formed SCO UnixWare 7.0.1& The Open Source Fujitsu Siemens. Based from the March SCO UnixWare 7.1.1 Solaris 2.0-2.6, 7, 8, 9 (Digital Unix, OSF/1) foundation for Mac OS (rh) = Red Hat, on DC/OSX from Solaris 1.* 2000 merger of OS notes SVR4-based Mandrake, Suse,... became Caldera Open (SunOS 5.*) (4)= 4.0F/G OS notes X, descended from Pyramid, SINIX BSD-based Tera Computer (deb) = Debian, Libranet,... Unix and later became SVR4-based (5)= 5.0A NeXTStep from Siemens, and SVR4. Company and Cray SCO again. Research smit Aqua: System /usr/sysadm/bin/sysmgr (6.3+) solstice checklist linuxconf sysadm checklist administrative GUI smitty Preferences, NetInfo sysadm /stand/sysinstall sam toolchest sushi ? scoadmin admintool ? ? /etc/install/install administrative GUI yast2 (Suse) WebSysAdmin (5) sysman wsm Manager /usr/Cadmin/bin/* smc (8 01/01+) xmenu lsuser xadmin Aqua: System adduser useradd useradd useradd sysadm scoadmin mkuser useradd useradd useradd udbgen managing users Preferences, Users rmuser userdel /usr/Cadmin/bin/cpeople userdel userdel useradd useradd ? ? ? managing users chuser userdel userdel userdel udbrstrict niutil pw usermod (deb) adduser adduser (interactive) userdel userdel rmuser nu scripts dia -R full dmesg (if you're lucky) prtconf -v ioscan vmstat -P /proc/cpuinfo /usr/platform/`uname -i`/ dmesg (if you're lucky) hwconfig hwmgr -get category prtconf /proc/pci dmesg sbin/prtdiag -v (sun4u and dmesg adb hw (5) hwmgr -show machid list hardware lscfg /proc/meminfo more dmesg sun4d only) dmesg (if you're list hardware ioreg -bls dg_sysreport -g hardware cat /var/run/dmesg.boot model hinv autoconf -l scoadmin/DCU devices ? getconf configuration lsattr /proc/interrupts /var/run/dmesg.boot cat /var/run/dmesg.boot psrinfo -v lucky) configuration pciconf -l stm (from the SupportPlus psrinfo uname -a lsdev /proc/ioports cat /kern/msgbuf /usr/lib/X11/testtools/ isainfo -v CDROM) pset_info lspci z35SysInfo dmesg bdf (like most vendors' df) sys_check hwinfo (SuSE) iostat -En /usr/bin/X11/dxsysinfo show/set setboot nvram openprom (on in bdm show/set dg_sysctl | /dev/nvram (if you have it) EEPROM/NVRAM bootlist -o -m normal nvram ? bootadmin (at boot PROM) printenv/setenv (at command eeprom OpenFirmware (at boot stop ? eeprom ? (4.0D+) consvar ? ? EEPROM/NVRAM grep BOOTPATH hwclock values stm monitor) architectures) or ctrl-a) values (3.2.*) scu scan edt devfsadm. pre-Solaris 7, modprobe (4.0) scu scan edt; disklabel -rw add device without (automatic — camcontrol ioscan -fnCdevtype; scsiha -pr reinitdev use: add device without cfgmgr -v N/A kerneld ? ? mkdev ? rzXX label (for disks) ? ? reboot autdodiskmounter) kldload insf -Cdevtype ioconfig -f /hw changedev drvconfig; devlinks; {disks, reboot insmod (5.x) dsfmgr -k; disklabel -rw tapes, ports} dskn auto /dev/tape tape device /dev/rmt0 ? /dev/rmt/0 /dev/rsa0 /dev/rmt/0 /dev/st0 /dev/st0 /dev/st0 /dev/ios0/rstape001 /dev/rct0 /dev/rmt/0 ? (5.x) /dev/ntape /dev/tape ? tpmnt tape device /dev/nrtape X kvm config ? ? ? xf86config ? ? xf86config ? ? ? hwconfig kdmconfig (x86) ? ? ? ? X kvm config disklabel -r admpdisk -o list diskinfo read a disk label lspv -l Disk Utility disklabel -r prtvtoc fdisk -l disk fdisk -r OR disklabel -rl dkpart -l fsname prtvtoc dkinfo disklabel -r chpt -q ? read a disk label admvdisk -o list pvdisplay mbrlabel (non-root partitions are c or d /dev/ios0/rsdisk???s7 whole disk in partition N/A mounted under ? c ? 10 ? c /dev/1s# (#=0,1,...) 2 c c c ? whole disk in partition sysctl kern.rawpartition (???=000-999) /Volumes) fdisk cfdisk dvhtool disklabel -wr label a disk mkvg (labels unused) admpdisk disklabel -wr pvcreate fdisk disklabel -wr dksetup ? format format disklabel -rw chpt -a /etc/labelit label a disk fx -x mbrlabel sysinstall e2label parted (if you have it) fdisk lvcreate format partition a disk mklv pdisk admpdisk fx fdisk disklabel -i fdisk -e OR disklabel -E dkpart -e ? format disklabel -e chpt -p /etc/install/install partition a disk sysinstall sam fmthard pdisk (on a MAC) /kernel/genunix /platform/`uname -m`/ /hpux (9) /boot/vmlinuz kernel /unix /mach_kernel /dgux /kernel /unix /netbsd /bsd /unix /unix kernel/unix /vmunix /vmunix /vmunix /unicos kernel /stand/vmunix (10+) /boot/bootlx /platform/`uname -m`/ kernel/sparcv9/unix (7+) /usr/samples/kernel/vmtune sysdef sam (installed with the bos vi /var/Build/ /boot/kernel.conf getconf show/set kernel sysdef /proc/* sysctl dxkerneltuner show/set kernel adt.samples fileset) /usr/sbin/sysctl system.hostname;; sysctl systune /etc/sysctl.conf idtune /etc/conf/cf.d/configure -x cat /etc/system ? ? ? parameters kmtune (11+) /proc/sys/* /etc/sysctl.conf sysconfig parameters /usr/sbin/no reboot /etc/sysctl.conf ndd getconf (network-related) adb -k show runlevel who -r (runlevels unused) who -r ? who -r who -r /sbin/runlevel N/A ? who -r who -r who -r ? who -r ? who -r show runlevel installboot /usr/platform/ fdisk -A(and lilo to fdisk -i `uname -m` (4.x+) disklabel -rw -t make disk bootable bosboot -a bless dg_sysctl ? mkboot dvhtool ? dksetup ? ? ? ? make disk bootable manipulate mbr) installboot /lib/fs/ufs/bootblk [ufs|advfs] raw_device_file /System/Library/ /etc/rc* (9) StartupItems/*, /etc/rc* /etc/rc* /etc/rc* (but may vary) /etc/rc* startup scripts /etc/rc* /etc/rc* /sbin/rc* (10+) /etc/rc* /etc/rc* /etc/rc* /sbin/init.d; links in /sbin/rc?.d /etc/rc* ? startup scripts /Library/StartupItems/, /usr/local/etc/rc.d/ /etc/init.d/ /etc/init.d/ /etc/rc* /etc/rc* /etc/init.d/ /sbin/init.d/ /etc/rc* 0: shut down 0: firmware monitor 0: power-down 0: power-down run levels s,S: single-user s,S: single-user run levels s,S: single-user 0: halt s,S: single-user 0: shut down *=normalstates 1: sys admin -1: permanent insecure 1: sys admin *=normalstates 1: sys admin s,S,1: vendor-dependent 1: sys admin 1: single user for more detail 2: multiuser 0: insecure 2: multiuser for more detail ? ? ? ? 2: multiuser (no NFS) 1: single-user ? 2*: multiuser ? ? ? 2: multi-user, no NFS ? see 3*: share NFS 1: secure 3*: share NFS see 3*: multiuser 2-5*: multiuser 3+4*: user-defined 3: multi-user home.earthlink.net/ 4*: start GUI 2: highly secure 4*: user-defined home.earthlink.net/ 4: user-defined 6: reboot 5: firmware update 6: reboot ~jaymzh666/runlevels.html 5: user-defined 5: power-down ~jaymzh666/runlevels.html 5: firmware monitor 6: reboot 6: user-defined 6: reboot admswap -o list -buv swapinfo swap -s cat /proc/meminfo swap -s check swap space lsps -a ls -l /var/vm swapinfo swapctl -l swapctl swap -l swap -l pstat -s swapon -s ? /etc/swapper check swap space dg_sysreport -p freeswap pstat -s swap -l free swap -l ext2 ufs vxfs (4) ufs NC1FS "normal" filesystem jfs dg/ux ufs hfs efs, xfs ext3 ffs (was ufs) ffs (was ufs) htfs ufs 4.2 ufs "normal" filesystem hfs+ ufs (root) (5) AdvFS C2FS ReiserFS jfs (vxfs) ccd Solstice DiskSuite Advfs volume-based filesystem jfs ? ? LVM xlv, xvm, xfs LVM vdisk vdisk ? ? ? volume-based filesystem ccd, raidframe ccd VxVM ($) vinum VxVM ($) LSM /etc/checklist /etc/mnttab file system (9) /etc/vfstab /etc/default/filesys /etc/fstab file system /etc/filesystems NetInfo /etc/fstab /etc/fstab /etc/fstab /etc/fstab /etc/fstab /etc/fstab /etc/vfstab (local) /etc/fstab /etc/fstab /etc/fstab description /etc/fstab /etc/dktab /etc/vfstab (local) AdvFS: /etc/fdmns description (10+) /etc/rmtab (remote) smitty vg /opt/VRTSvxva/bin/vxva AdvFS: mkfdmn, mkfset, smitty lvm e2fsadm vg*; lv*; pv* (Veritas) addvol, showfdmn smitty jfs vinum xlv_mgr lvcreate ccdconfig dkconfig volume manipulation Disk Utility / pdisk sysadm extendfs ? ? /usr/opt/SUNWmd/ ? LSM: volassist or volmake, ? /etc/install/install volume manipulation mkvg; chvg; rmvg ccdconfig xvm lvremove raidctl dkmirror fsadm sbin/metatool volume, volplex and volsd, mklv; chlv; rmlv lvextend (DiskSuite) volprint mkfs; crfs; rmfs AdvFS: mkfdmn bb mkfs mkfs newfs create filesystem crfs (automatic) admfilesystem newfs mkfs mke2fs newfs newfs ? ? UFS: newfs ? mkfs create filesystem newfs newfs mkfs MFS: mfs labelit truncate -s size[K|M|G] dd if=/dev/zero filename dd if=/dev/zero dd if=/dev/zero dd if=/dev/zero dd if=/dev/zero create non-0-length dd if=/dev/zero dd if=/dev/zero of=filename create non-0-length lmktemp of=filename bs=1024 ? dd if=/dev/zero of=filename prealloc mkfile of=filename of=filename bs=1m of=filename bs=1024k of=filenmae bs=1024 mkfile ? ? ? empty file of=filename bs=1k bs=1024k count=desired empty file count=desired bs=size[b|k|m|g] \ bs=1024k count=desired count=desired count=desired count=desired count=desired pfs_mountd /etc/init.d/vold start; mount /dev/disk/cdromXa mount -v cdrfs -o ro mount /cdrom pfsd (automatic — mount -t cdrom (mounts automatically when CD mount -t cd9660 -r mount -F hs ..