Rosetta Stone for Unix.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
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 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! 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 software, 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 AT&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 uname dmesg (if you're lucky) sysctl -a prtconf adb dmesg lscfg model cat /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) grep BOOTPATH stm values camcontrol inf -e cfgmgr -v atacontrol add device without reboot ? N/A ioscan -fnC mkdev kldload insf -C 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 ? fdisk 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 /unix /dgux /boot/kernel/kernel /stand/vmunix smh (11.31+) /boot/loader.conf sam vmo vi /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 make 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 more 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 who -r who -r sysctl kern.securelevel who -r /etc/localtime time 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 systat -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+) zfs (7+) ccd vinum jfs (vxfs) volume-based filesystem jfs2 ? admvdisk geom (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 dd 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 strings dosfile.txt > unixfile.txt ? ? tr -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 ls -e setacl scsimgr (11.31+) fcstat fcmsutil mptutil (8.0+) lscfg -vl fcs0 fcdlist Fibre Channel / 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+) kill -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 netstat -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