net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

© 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:

Wednesday, 07-Dec-2005 11:11:32 PST ) LINUX(RedHat) SOLARIS / {/dev/vx/dsk/rootvol} / Tru64 {/dev/rz0a}





/export/home /dev/vx/dsk/home} /tmp /dev/vx/dsk/swapvol} /usr /var /usr {/dev/rz0g}

/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/master.passwd /etc/group 65535

{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 logins usermod FreeBSD uname -i sam HP-UX

useradd userdel logins

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

top sa vmstat iostat dmesg

top glance sar vmstat iostat dmesg 4TB 8TB

file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (1 of 6)12/8/2005 5:49:33 AM

UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

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


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

swap swapinfo swapon -a FreeBSD /var/spool/print

/dev/vg00/lvol2 swap swapinfo -a swapon -a HP-UX /etc/lp/interface/* lpshut lpsched

Display swap size lsps -a

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 lpr

lp lpr






cancel lprm



cancel lprm lpadmin -p pq lpadmin -x pq lpadmin -d pq

cancel lprm lprsetup lprsetup export PRINTER="lp" Tru64 /etc/rc.config

lpadmin -p pq lpadmin -x pq lpadmin -d pq HP-UX /etc/rc.conf /etc/rc.config.d/netconf


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/host.conf sysctl routed ifconfig -a

/etc/hosts /etc/nsswitch.conf ndd -h gated lanscan -v

/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

ifconfig ln0 alias /etc/issue

Increase the # of pseudoterminals

cd /dev ./MAKEDEV -v pty insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v

{/etc/iu.ap} ptsl 0 # ldterm ttcompat halt boot -r

cd /dev ./MAKEDEV PTY_1

chdev -l pty0 -anum=256 -P reboot

Maximum # of ptys 512 Remote Shell remsh rsh rsh

{MAXUSERS} remsh

256 rsh

176 3000 rsh


8192 rsh

file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (2 of 6)12/8/2005 5:49:33 AM

UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

YP/NIS service binder System Files NFS exported NFS Client mounted directories Max File System

/usr/lib/netsvc/yp/ypbind AIX /etc/exports

/usr/sbin/ypbind FreeBSD /etc/exports

/usr/lib/netsvc/yp/ypbind HP-UX /etc/exports

/sbin/ypbind LINUX(RedHat) /etc/exports

/usr/lib/netsvc/yp/ypbind Solaris /etc/dfs/dfstab /etc/dfs/sharetab /etc/rmtab

/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 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

{512B block size} {8KB block size}

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

vgdisplay -v pvchange pvcreate pvdisplay vgreduce

vxprint -l -g rootdg

vxdiskadd vxprint -dl vxdg rmdisk

voldiskadd volprint -dl voldg rmdisk


vinum move -f drive object



vxassist move

volassist move


vgcreate vgremove

vgcreate vgremove

vxdg init

voldg init

chvg varyonvg varyoffvg vgchange vgchange

vgcfgrestore exportvg importvg lsvg vgexport vgimport vgscan

vgcfgrestore vgexport vgimport vgscan vxdg deport vxdg import voldg deport voldg import

file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (3 of 6)12/8/2005 5:49:33 AM

UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

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




vxedit set

voledit set

lslv mklv extendlv AIX reduce LV rmlv bootlist -m normal

vinum lv

lvdisplay lvcreate lvextend lvreduce

lvdisplay lvcreate lvextend lvreduce lvremove lilo

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

chfs -a size=# /mt

resize2fs resize_reiserfs lvsplit lvmerge

vxva mkfs -M


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

vinum mirror drive

lvcreate -m 1 lvextend -m 1

vxassist mirror

volassist make vol 100mb mirror=true volassist make vol 100mb layout=stripe /usr/sys/bin/btcreate

vinum stripe drive

lvcreate -i 3 -I 64 /opt/ignite/bin/make_recovery

lvcreate -i 3 -I 64

vxassist make vol 100mb layout=raid5

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

ufsdump ufsrestore SOLARIS /etc/init.d /kernel/genunix sysdef -i

vdump vrestore Tru64 /sbin/init.d /vmunix sysconfig dxkerneltuner


/kernel sysctl -a

/sbin/rc /stand/vmunix sysdef kmtune kmsystem

Kernel Parameters lsattr -E -l sys0

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


List modules Load module Unload module


kldstat kldload kldunload /stand/sysinstall sysctl hw.physmem

kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/ syslog/syslog.log getconf KERNEL_BITS

modinfo modload modunload sys-unconfig prtconf isainfo -kv

Initialize system install_assist Physical RAM Kernel Bits bootinfo -r bootinfo -K

uerf | grep memory


file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (4 of 6)12/8/2005 5:49:33 AM

UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

Crash utility Trace System Calls Machine model OS Level Run Level Core dump files

crash syscalls uname -m bootinfo -m oslevel who -r /var/adm/ras

crash truss uname -m uname -r

adb tusc model uname -m uname -r who -r /var/adm/crash

lcrash strace uname -m uname -r runlevel

crash truss uname -imp uname -r who -r /var/crash/`uname -n`

kdbx trace uname -p sizer -v who -r

{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

>boot Interact with IPL ? Y ISL>hpux -lm control-B co

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/localtime /etc/rc.conf {xntpd_enable="YES"} /etc/rc.network pkg_add pkg_delete pkg_info -a

/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

/var/db/pkg FreeBSD /dev

/var/adm/sw/ HP-UX /dev

Install devices for attached peripherals

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`/

scu scan edt scsimgr -scan_all

Remove device Device drivers CPU List Terminal

psrinfo -v



pciconf -l


lspci pnpdump /dev/sda /dev/cdrom iso9660

sbin/prtdiag ok test-all /opt/SUNWvts/bin/sunvts /dev/c#t#d0s2 /dev/dsk/c#t6d0s2 hsfs /dev/rz0c /dev/rz3c cdfs

Whole Disk CDROM CDROM file type

/dev/hdisk# /dev/cd0 cdrfs

/dev/ad0s1c /dev/acd0c cd9660

/dev/dsk/c#t#d0 /dev/dsk/c#t2d0 cdfs

file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (5 of 6)12/8/2005 5:49:33 AM

UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

Rewinding tape drive Non-rewinding tape drive Floppy drive Links FAQ Online Manual

/dev/rmt0 /dev/rmt0.1 /dev/rfd0 AIX AIX-FAQ AIX 5.3 Docs

/dev/rwt0d /dev/nrwt0d /dev/fd0 FreeBSD

/dev/rmt/0m /dev/rmt/0mn HP-UX HP-UX FAQ HP-UX Reference Manual IT Resource Center 1-800-633-3600

/dev/rst0 /dev/nrst0 /dev/fd0 LINUX(RedHat) LINUX FAQ

{ 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

FreeBSD FAQ FreeBSD Hand Book

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

FreeBSD Primary Site

HP-UX Ports education.hp.com

file:///C|/Documents%20and%20Settings/hgo/My%20Documents/unixguide.htm (6 of 6)12/8/2005 5:49:33 AM

Sign up to vote on this title
UsefulNot useful