Directory Mappings Aix Freebsd Hp-Ux Linux (Redhat) Solaris Tru64
Directory Mappings Aix Freebsd Hp-Ux Linux (Redhat) Solaris Tru64
http://www.unixguide.net/unixguide.shtml
2000 UNIXguide.net, All Rights Reserved. Hermelito Go Directory Mappings Root filesystem / {/dev/hd4} /home {/dev/hd1} /tmp {/dev/hd3} /usr {/dev/hd2} /var {/dev/hd9var} Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow/Deny remote login AIX /etc/passwd /etc/security/passwd /etc/group /etc/security/group 4294967295 /etc/security/user {rlogin=true} FreeBSD AIX FreeBSD HP-UX
(Last Update:
Wednesday, 07-Dec-2005 14:11:32 EST ) SOLARIS / {/dev/vx /dsk/rootvol} /export/home /dev/vx /dsk/home} /tmp /dev/vx /dsk/swapvol} /usr /var /usr {/dev/rz0g} / Tru64 {/dev/rz0a}
LINUX(RedHat) / {/dev/sda1}
/
{/dev/ad0s1a}
Home Directory
/usr
{/dev/ad0s1f}
/usr {/dev/vg00/lvol7} /var {/dev/vg00/lvol8} /usr/newconfig HP-UX /etc/passwd /tcb/files /auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup) >boot Interact with IPL ? Y ISL>hpux -iS LINUX(RedHat) /etc/passwd /etc/shadow /etc/group 65535 /etc/securetty {ttyp1} 99 99 {lilo} control-x linux S passwd root
/var
{/dev/ad0s1e}
Solaris /etc/passwd /etc/shadow /etc/group 2147483647 /etc/default/login {CONSOLE=/dev /console} 60001 & 65534(nobody4) 60002 & 65534(nogroup) boot cdrom -s mkdir /tmp/a mount /dev/c0t0d0s0
Tru64 /etc/passwd /etc/group 65535 /etc/securettys {ttyp1} 65534 65534 press the HALT Button or (Control-P) >>>boot -fl s lsmbstartup
/etc/passwd
/etc/master.passwd /etc/group 65535
/etc/ttys
{secure} 65534 65534
boot from CD/Tape Installation/Maintenance ok boot -s Start Limited Shell passwd root getrootfs hdisk0
1 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
vi /etc/security/passwd
passwd root
{grub} c kernel vmlinuz2.4.9-13 single ro root=/dev/hda8 initrd /initrd2.4.9-13.img boot passwd root useradd userdel
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 Process Data Space Swap device Swap file type Display swap size Activate Swap Printers Printer Queues Stop LP Start LP
mkuser rmuser lsuser -f ALL chuser -a AIX hostid smit top monitor sar vmstat iostat alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a swapon -a AIX /etc/qconfig stopsrc -s lpd startsrc -s lpd
adduser rmuser
useradd userdel
usermod LINUX(RedHat) hostid linuxconf top sar {sysstat} vmstat iostat {sysstat} dmesg 64 GB {>2.3.24} sysctl kernel.shmmax 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
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
FreeBSD
/dev/ad0s1b
swap swapinfo swapon -a FreeBSD /var/spool/print
lpd
lpsched
2 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
enq lp lpr qprt enq -A lpq lpstat qchk cancel lprm qcan enq -x smit mkpq smit rmpq export LPDEST="pq" AIX lsattr -E -l inet0 /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 chdev -l pty0 -anum=256 -P reboot
lp
lp
lpr
lp lpr
lp lpr
LP statistics
lpq
lpstat
lpq
lpstat
lpstat
Remove print jobs Add printer queue 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
cancel lprm
cancel
lprm
lpadmin -p pq lpadmin -x pq lpadmin -d pq HP-UX /etc/rc.conf /etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 alias IP /etc/rc.config.d /netconf /etc/hosts
printtool
/etc/nsswitch.conf /etc/nsswitch.conf ndd -h gated lanscan -v ifconfig lan0:1 IP telnetd -b /etc/issue rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v cd /dev ./MAKEDEV -v pty sysctl -a | grep net routed ifconfig -a modprobe ip_alias ifconfig eth0:1 IP /etc/issue
ifconfig hme0:1 IP ifconfig ln0 alias up BANNER @ /etc/default /telnetd {/etc/system} set pt_cnt = # {SYSV} set npty = # {BSD} {/etc/iu.ap} ptsl 0 # ldterm ttcompat halt boot -r cd /dev ./MAKEDEV PTY_1 /etc/issue
3 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
Maximum # of ptys Remote Shell YP/NIS service binder System Files NFS exported NFS Client mounted directories Max File System
{MAXUSERS}
256
176 {BSD} 3000 {SYSV} rsh /usr/lib/netsvc /yp/ypbind Solaris /etc/dfs/dfstab /etc/dfs/sharetab /etc/rmtab 1 TB 8000 TB {vxfs} {512B block {8KB block 1 TB 2 GB {=<2.5.1} 64 K SOLARIS /etc/vfstab df -k sysdef format -d c#t#d# format>current format>inquiry prtvtoc sub disk Volume Plex disk group vxfs
8192
rsh /usr/sbin/ypbind Tru64 /etc/exports /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 Tru64 /etc/fstab df -k
128 GB
128 GB
64 GB
128 GB
60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan fdisk -v ad0 disklabel ad0 sub disk Volume Plex
Disk information bootinfo -s hdisk# Disk Label LVM Concepts lspv -l hdisk# Partition Volume Volume group Journal Filesystem type Default volume group Display volume group Modify physical volume jfs /dev/rootvg lsvg -l rootvg chpv
diskinfo /dev/rdsk cat /proc/scsi/scsi0 /c#t#d# /sda/model pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume volume group vxfs /dev/vg00 vgdisplay -v vg00 pvchange vgdisplay -v pvchange fdisk -l logical extents logical volume volume group ext3 reiserfs
file /dev/rrz0c disklabel -p rz0 sub disk Volume Plex disk group advfs
4 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
Prepare physical mkdev -c disk -l hdisk# disk List physical volume lspv vinum ld
Remove disk from reducevg volume group Move logical volumes to migratepv another physical volumes Create volume group Remove volume group Volume group availability Restore volume group Exports volume group Imports volume group Volume group listing 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 chvg varyonvg varyoffvg mkvg
pvmove
pvmove
vxassist move
volassist move
vgcreate vgremove vgchange vgcfgrestore vgexport vgimport vgscan lvchange lvdisplay lvcreate lvextend lvreduce lvremove lilo
vxdg init
voldg init
exportvg importvg lsvg chlv lslv mklv extendlv AIX reduce LV rmlv bootlist -m normal vinum rm vol vinum lv
vgexport vgimport vgscan lvchange lvdisplay lvcreate lvextend lvreduce lvremove lvlnboot lvrmboot
vxedit set vxprint -vl vxassist make vxassist growto vxassist shrinkto vxedit rm vxbootsetup
voledit set volprint -vl volassist make volassist growto volassist shrinkto voledit -g rootdg -rf rm vol1
extendfs /dev/vg00 /lvol8 resize2fs fsadm -F vxfs -b resize_reiserfs {LE * 1024} /mt lvsplit lvsplit
vxva mkfs -M
rmlvcopy
5 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
Merge mirrors Create mirrors Add mirrors Create striped volumes System recovery tape Backup Restore MISC Startup script Kernel Kernel Parameters /etc/rc /usr/lib/boot/unix_up lsattr -E -l sys0 mklv -c 2 mklvcopy lv 2 mklv -u 3 -S 64K mksysb -i /dev/rmt0 savevg -i rootvg restvg AIX FreeBSD vinum saveconfig vinum stripe drive vinum mirror drive
lvcreate -i 3 -I 64
vxassist make vol volassist make vol 100mb 100mb layout=raid5 layout=stripe /usr/sys/bin/btcreate ufsdump ufsrestore SOLARIS /etc/init.d /kernel/genunix sysdef -i vdump vrestore Tru64 /sbin/init.d /vmunix sysconfig dxkerneltuner
/opt/ignite /bin/make_recovery fbackup tar cvf /dev/rst0 / frecover HP-UX /sbin/rc /stand/vmunix sysdef kmtune kmsystem cd /stand/build /usr/lbin/sysadm /system_prep -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 kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/syslog /syslog.log getconf KERNEL_BITS adb tar xvf /dev/rst0 LINUX(RedHat) /etc/rc.d/rc /boot/vmlinuz sysctl -a cd /usr/src/linux
/etc/rc
/kernel sysctl -a
chdev -l sys0 -a
cd /sys/i386/conf vi KERNEL config KERNEL cd ../../compile /KERNEL make depend make make install
make mrproper make menuconfig make dep make clean make bzImage make install make modules make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.16 mkinitrd /boot/initrd2.2.16.img 2.2.16 vi /etc/lilo.conf lilo
lsmod insmod rmmod netconf free getconf LONG_BIT lcrash
vi /etc/system reboot
doconfig
List modules Load module Unload module Initialize system Physical RAM Kernel Bits Crash utility
genkex
netsetup
uerf | grep memory
64
kdbx
crash
6 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
Trace System Calls Machine model OS Level Run Level Core dump files
{lilo} control-x linux S Key on service mode/F4 Boot from CD/Tape Select Maintenance Limited function Shell >boot Interact with IPL ? Y ISL>hpux -iS {grub} c kernel vmlinuz2.4.9-13 single ro root=/dev/hda8 initrd /initrd2.4.9-13.img boot
ok boot -s
ok boot -s
Maintenance mode
ok boot -as
ok boot -as
Interrupt Key Return to console Timezone Management NTP Daemon Software /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd AIX pkg_add pkg_delete pkg_info -a /etc/localtime
control-P
/etc/TIMEZONE
/etc/svid3_tz timezone
/etc/rc.conf /etc/rc.config.d /etc/ntp.conf {xntpd_enable="YES"} /netdaemons /etc/rc.d/init.d/xntpd /etc/rc.network /sbin/init.d/xntpd HP-UX swinstall swremove swlist LINUX(RedHat) rpm -i package rpm -e package rpm -qa rpm -V package rpm -ql package
/etc/inet/ntp.conf rcmgr set XNTPD_CONF YES /etc/init.d/xntpd /sbin/init.d/xntpd SOLARIS pkgadd pkgrm pkginfo pkginfo -i pkginfo -p pkgchk -l package patchadd -p setld -l setld -d setld -i setld -v setld -i package dupatch -track -type patch Tru64
Install Software installp -a Uninstall installp -u software List installed lslpp -L all software Verify installed lppchk -v software List all files List installed patches Package owner SW Directory lslpp -f fileset instfix -i lslpp -w path /usr/lpp
swlist -l fileset -a state swlist -l file pkg_info -L package fileset swlist -l patch what /stand/vmunix swlist -l file | grep path /var/db/pkg /var/adm/sw/
7 of 8
28-03-2012 15:07
http://www.unixguide.net/unixguide.shtml
Devices Devices Install devices for attached peripherals Remove device Device drivers CPU List Terminal /dev
AIX /dev
FreeBSD /dev
HP-UX /dev
LINUX(RedHat)
SOLARIS /devices drvconfig devlinks disks tapes ports rem_drv prtconf -D /dev
Tru64
cfgmgr -v
/dev/MAKEDEV
insf -e
/dev/MAKEDEV
rmdev -l lscfg lsdev -Cc processor lsdev -Cc tty sysctl hw.model
rmsf lsdev ioscan -fnC processor ioscan -fnC tty cat /proc/cpuinfo
psrinfo -v pmadm -l /usr/platform /`uname -m`/ sbin/prtdiag ok test-all /opt/SUNWvts /bin/sunvts /dev/c#t#d0s2 /dev/dsk/c#t6d0s2 hsfs /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
psrinfo -v
Diagnostics
diag
pciconf -l
stm
lspci pnpdump
Whole Disk CDROM CDROM file type Rewinding tape drive Non-rewinding tape drive Floppy drive Links FAQ Online Manual Technical Support Phone Number Free Software Certification
/dev/hdisk# /dev/cd0 cdrfs /dev/rmt0 /dev/rmt0.1 /dev/rfd0 AIX AIX-FAQ AIX 5.3 Docs p5 TechSupport 1-800-CALL-AIX Public Domain Software Library www.ibm.com
/dev/dsk/c#t#d0 /dev/dsk/c#t2d0 cdfs /dev/rmt/0m /dev/rmt/0mn HP-UX HP-UX FAQ HP-UX Reference Manual
/dev/sda /dev/cdrom iso9660 /dev/rst0 { c 9 0} /dev/nrst0 c 9 128 } /dev/fd0 LINUX(RedHat) LINUX FAQ Linux Documentation Project
/dev/rz0c /dev/rz3c cdfs /dev/rmt0 /dev/nrmt0 /dev/fd0c Tru64 Tru64 FAQ Tru64 Documents Alpha Systems Support 1-800-474-6836 Tru64 Demos, Shareware & Freeware ASE Information
IT Resource Center Red Hat support 1-800-633-3600 1-888-REDHAT1 Linux Software Map RHCE
8 of 8
28-03-2012 15:07