Professional Documents
Culture Documents
2000 UNIXguide.net, All Rights Reserved. Hermelito Go Directory Mappings Root filesystem Home Directory / /home /tmp /usr /var Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow/Deny remote login User nobody's id # Group nobody's id # AIX /etc/passwd /etc/security/passwd /etc/group /etc/security/group 4294967295 /etc/security/user {rlogin=true} 4294967294 4294967294 FreeBSD AIX {/dev/hd4} {/dev/hd1} {/dev/hd3} {/dev/hd2} {/dev/hd9var} FreeBSD HP-UX / /home /tmp {/dev/vg00/lvol1} {/dev/vg00/lvol4} {/dev/vg00/lvol6} {/dev/vg00/lvol7} {/dev/vg00/lvol8}
(Last Update:
{/dev/ad0s1a}
{/dev/sda1}
/usr /var
{/dev/ad0s1f} {/dev/ad0s1e}
/usr /var
/usr/newconfig HP-UX /etc/passwd /tcb/files/auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup) LINUX(RedHat) /etc/passwd /etc/shadow /etc/group 65535 /etc/securetty {ttyp1} 99 99 {lilo} control-x linux S passwd root ok boot -s passwd root >boot Interact with IPL ? Y ISL>hpux -iS passwd root boot cdrom -s {grub} c kernel vmlinuz-2.4.9-13 single ro root=/dev/hda8 initrd /initrd-2.4.9-13.img boot passwd root useradd userdel mkdir /tmp/a mount /dev/c0t0d0s0 /tmp/a vi /tmp/a/etc/shadow Solaris /etc/passwd /etc/shadow /etc/group 2147483647 /etc/default/login {CONSOLE=/dev/console} 60001 & 65534(nobody4) 60002 & 65534(nogroup) /etc/passwd /etc/group 65535 /etc/securettys {ttyp1} 65534 65534 Tru64
/etc/passwd
/etc/master.passwd /etc/group 65535
/etc/ttys
{secure} 65534 65534
press the HALT Button or (Control-P) >>>boot -fl s lsmbstartup /sbin/bcheckrc passwd root
boot from CD/Tape Recover root password Installation/Maintenance Start Limited Shell getrootfs hdisk0 vi /etc/security/passwd
Create new user Delete user List users Modify user account General Commands Unique host ID Administrator Performance monitor System activity reporter Virtual Memory statistics I/O statistics Error logs Physical RAM Shared Memory
mkuser rmuser lsuser -f ALL chuser -a AIX hostid smit top monitor sar vmstat iostat alog -o -t boot errpt 1TB 2.75GB
adduser rmuser
useradd userdel
usermod LINUX(RedHat) hostid linuxconf top sar {sysstat} vmstat iostat {sysstat} dmesg 64 GB {>2.3.24} sysctl kernel.shmmax
usermod Solaris hostid admintool top sar vmstat iostat dmesg 16TB
usermod Tru64 hostid sysman top /usr/opt/svr4/bin/sar vmstat iostat uerf -R -o full 4TB
Process Data Space Swap device Swap file type Activate Swap Printers Printer Queues Stop LP Start LP
2GB /dev/hd6 /etc/swapspaces swapon -a AIX /etc/qconfig stopsrc -s lpd startsrc -s lpd enq lpd
4GB
900 MB /dev/sda2 partition type 82 free swapon -a LINUX /var/spool/lpd/lp/* /etc/init.d/lpd stop /etc/init.d/lpd start /dev/vx/dsk/swapvol swap swap -l swap -a Solaris /etc/lp/interfaces/* /usr/lib/lp/lpshut /usr/lib/lp/lpsched /dev/rz0b raw swapon -s swapon -a Tru64 /usr/spool/lpd /sbin/init.d/lpd stop /sbin/init.d/lpd start
/dev/ad0s1b
swap swapinfo swapon -a FreeBSD /var/spool/print
Submit print jobs lp lpr qprt enq -A LP statistics lpq lpstat qchk cancel Remove print jobs lprm qcan enq -x Add printer queue smit mkpq Remove Printer queue Make default printer TCP/IP Network IP configuration Hosts IP addresses Name service switch Network parameters Routing daemon NIC Configurations Secondary IP Address Login prompt smit rmpq export LPDEST="pq" AIX lsattr -E -l inet0
lp
lp
lpr
lp lpr
lp lpr
lpq
lpstat
lpq
lpstat
lpstat
cancel lprm
cancel
lprm
printtool
LINUX(RedHat) /etc/sysconfig/network-scripts/
Solaris /etc/hostname.* /etc/inet/* /etc/defaultrouter /etc/inet/hosts /etc/nsswitch.conf ndd /dev/[tcp|ip] ? in.routed ifconfig -a ifconfig hme0:1 IP up BANNER @ /etc/default/telnetd {/etc/system} set pt_cnt = # set npty = # {SYSV} {BSD} routed ifconfig -a
/etc/hosts /etc/netsvc.conf no -a gated ifconfig -a ifconfig en0 alias IP HERALD @ /etc/security/login.cfg odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | odmchange -q "attribute=num and uniquetype=pty/pty/pty" o PdAt
/etc/hosts /etc/nsswitch.conf sysctl -a | grep net routed ifconfig -a modprobe ip_alias ifconfig eth0:1 IP /etc/issue
/etc/hosts /etc/svc.conf
ifconfig xl0 alias IP ifconfig lan0:1 IP telnetd -b /etc/issue rebuild your kernel with these new values NPTY=# NSTRPY=# reboot
{MAXUSERS} remsh
256 rsh
{BSD} {SYSV}
8192 rsh
YP/NIS service binder System Files NFS exported NFS Client mounted directories Max File System
/etc/xtab
/etc/xtab
/var/lib/nfs/xtab
/var/adm/mountdtab 128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs} 128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs} 64 K SOLARIS Tru64 /etc/fstab df -k
128 GB
128 GB
2 TB
1 TB 8000 TB {vxfs}
Max File Size Max # File Descriptors DISK/LVM Commands Filesystem table Free disk blocks Device listing Disk information Disk Label LVM Concepts
64 GB
128 GB
2 GB 8192 GB
1 TB 2 GB {=<2.5.1} 64 K
64 K AIX /etc/filesystems df -k lsdev -C bootinfo -s hdisk# lspv -l hdisk# Partition Volume Volume group fdisk -v ad0 disklabel ad0 sub disk Volume Plex df -k FreeBSD /etc/fstab
60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan diskinfo /dev/rdsk/c#t#d# pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume volume group vxfs /dev/vg00 vgdisplay -v vg00 pvchange pvcreate vinum ld pvdisplay vgreduce
sysctl fs.file-max LINUX(RedHat) /etc/fstab df -k cat /proc/devices cat /proc/scsi/scsi0/sda/model fdisk -l logical extents logical volume volume group ext3 reiserfs
/etc/vfstab df -k sysdef format -d c#t#d# format>current format>inquiry prtvtoc sub disk Volume Plex disk group vxfs /dev/vx/dsk/rootdg
file /dev/rrz0c disklabel -p rz0 sub disk Volume Plex disk group advfs /dev/vol/rootdg volprint -l -g rootdg
Journal Filesystem type Default volume group Display volume group Modify physical volume Prepare physical disk List physical volume Remove disk from volume group Move logical volumes to another physical volumes Create volume group Remove volume group Volume group availability Restore volume group Exports volume group Imports volume group Volume group listing
jfs /dev/rootvg lsvg -l rootvg chpv mkdev -c disk -l hdisk# lspv reducevg
vxprint -l -g rootdg
migratepv
pvmove
pvmove
vxassist move
volassist move
mkvg
vgcreate vgremove
vgcreate vgremove
vxdg init
voldg init
vgcfgrestore vgexport vgimport vgscan vxdg deport vxdg import voldg deport voldg import
Change logical volume characteristics List logical volume Make logical volume Extend logical volume Reduce logical volume Remove logical volume Prepare boot volumes Remove boot volumes Extend File system Reduce/Split mirrors Merge mirrors Create mirrors Add mirrors Create striped volumes System recovery tape Backup Restore MISC Startup script Kernel
chlv
lvchange
lvchange
vxedit set
voledit set
vinum lv
vxprint -vl vxassist make vxassist growto vxassist shrinkto vxedit rm vxbootsetup
volprint -vl volassist make volassist growto volassist shrinkto voledit -g rootdg -rf rm vol1
vinum rm vol
lvremove lvlnboot lvrmboot extendfs /dev/vg00/lvol8 fsadm -F vxfs -b {LE * 1024} / mt lvsplit lvmerge
vxva mkfs -M
rmlvcopy
mklv -c 2 mklvcopy lv 2 mklv -u 3 -S 64K mksysb -i /dev/rmt0 savevg -i rootvg restvg AIX /etc/rc /usr/lib/boot/unix_up
lvcreate -m 1 lvextend -m 1
vxassist mirror
volassist make vol 100mb mirror=true volassist make vol 100mb layout=stripe /usr/sys/bin/btcreate
lvcreate -i 3 -I 64 /opt/ignite/bin/make_recovery
lvcreate -i 3 -I 64
vinum saveconfig
fbackup frecover
tar cvf /dev/rst0 / tar xvf /dev/rst0 HP-UX LINUX(RedHat) /etc/rc.d/rc /boot/vmlinuz sysctl -a cd /usr/src/linux
FreeBSD
/etc/rc
/kernel sysctl -a
cd /stand/build /usr/lbin/sysadm/system_prep cd /sys/i386/conf vi KERNEL Reconfigure the kernel config KERNEL cd ../../compile/ chdev -l sys0 -a KERNEL make depend make make install v -s system vi system mk_kernel -s system cd /stand mv system system.prev mv vmunix vmunix.prev mv dlkm dlkm.prev mv /stand/build/system system kmupdate /stand/build/ vmunix_test
make mrproper make menuconfig make dep make clean make bzImage make install make modules make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz2.2.16 mkinitrd /boot/initrd-2.2.16.img 2.2.16 vi /etc/lilo.conf lilo
lsmod insmod rmmod netconf free getconf LONG_BIT
vi /etc/system reboot
doconfig
genkex
kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/ syslog/syslog.log getconf KERNEL_BITS
netsetup
uerf | grep memory
64
Crash utility Trace System Calls Machine model OS Level Run Level Core dump files
{lilo} control-x linux S Key on service mode/F4 Boot single user Boot from CD/Tape Select Maintenance Limited function Shell ok boot -s >boot Interact with IPL ? Y ISL>hpux -iS {grub} c kernel vmlinuz-2.4.9-13 single ro root=/dev/hda8 initrd /initrd-2.4.9-13.img boot ok boot -s >>> boot -fl s
Maintenance mode Interrupt Key Return to console Timezone Management NTP Daemon Software Install Software Uninstall software List installed software Verify installed software List all files List installed patches Package owner SW Directory Devices Devices installp -a installp -u lslpp -L all lppchk -v lslpp -f fileset instfix -i lslpp -w path /usr/lpp AIX /dev /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd AIX
ok boot -as
ok boot -as Stop-A ok go /etc/sysconfig/clock /etc/ntp.conf /etc/rc.d/init.d/xntpd LINUX(RedHat) rpm -i package rpm -e package rpm -qa rpm -V package rpm -ql package pkgadd pkgrm pkginfo pkginfo -i pkginfo -p pkgchk -l package patchadd -p rpm -qf file /var/lib/rpm LINUX(RedHat) /dev /devices drvconfig pkgchk -l -p path /var/sadm SOLARIS /dev /var/adm/smlogs Tru64 /etc/TIMEZONE /etc/default/init /etc/inet/ntp.conf /etc/init.d/xntpd SOLARIS setld -l setld -d setld -i setld -v setld -i package dupatch -track -type patch /etc/svid3_tz timezone rcmgr set XNTPD_CONF YES /sbin/init.d/xntpd Tru64 control-P
/etc/TIMEZONE /etc/rc.config.d/netdaemons /sbin/init.d/xntpd HP-UX swinstall swremove swlist swlist -l fileset -a state
pkg_info -L package
swlist -l file fileset swlist -l patch what /stand/vmunix swlist -l file | grep path
devlinks cfgmgr -v /dev/MAKEDEV insf -e /dev/MAKEDEV disks tapes ports rmdev -l lscfg lsdev -Cc processor lsdev -Cc tty sysctl hw.model rmsf lsdev ioscan -fnC processor ioscan -fnC tty cat /proc/cpuinfo rem_drv prtconf -D psrinfo -v pmadm -l /usr/platform/`uname -m`/
psrinfo -v
Diagnostics
diag
pciconf -l
stm
Rewinding tape drive Non-rewinding tape drive Floppy drive Links FAQ Online Manual
/dev/rmt/0m /dev/rmt/0mn HP-UX HP-UX FAQ HP-UX Reference Manual IT Resource Center 1-800-633-3600
{ c 9 0} { c 9 128 }
/dev/rmt/0 /dev/rmt/0n /dev/diskette SOLARIS Solaris 2 FAQ Solaris 10 Documentation SunSolve 1-800-USA-4SUN Sun Freeware suned.sun.com
/dev/rmt0 /dev/nrmt0 /dev/fd0c Tru64 Tru64 FAQ Tru64 Documents Alpha Systems Support 1-800-474-6836 Tru64 Demos, Shareware & Freeware ASE Information
Linux Documentation Project Red Hat support 1-888-REDHAT1 Linux Software Map RHCE
Technical Support p5 TechSupport Phone Number Free Software Certification 1-800-CALL-AIX Public Domain Software Library IBM Professional Certification