0% found this document useful (0 votes)
53 views

Directory Mappings Aix Freebsd Hp-Ux Linux (Redhat) Solaris Tru64

Hermelito Go Directory Mappings Root filesystem / / dev / hd4 / home . Dev / tmp 2/ dev > hd3 / usr > tmp > var > var> var /dev > var /dev hd9var Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow / Deny

Uploaded by

jaya5698
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Directory Mappings Aix Freebsd Hp-Ux Linux (Redhat) Solaris Tru64

Hermelito Go Directory Mappings Root filesystem / / dev / hd4 / home . Dev / tmp 2/ dev > hd3 / usr > tmp > var > var> var /dev > var /dev hd9var Sample configuration files User Accounts Password files Groups file Maximum # of user ID Allow / Deny

Uploaded by

jaya5698
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

UNIXguide.

net ( AIX, FreeBSD, HP-UX, LINUX, 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}

/ {/dev/vg00/lvol1} /home {/dev/vg00/lvol4} /tmp {/dev/vg00/lvol6}

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

User nobody's id 4294967294 # Group nobody's 4294967294 id # Recover root password

boot from CD/Tape Installation/Maintenance ok boot -s Start Limited Shell passwd root getrootfs hdisk0

1 of 8

28-03-2012 15:07

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

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

/tmp/a vi /tmp/a /etc/shadow

/sbin/bcheckrc passwd root

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 logins usermod

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

HP-UX uname -i sam

top sa vmstat iostat dmesg

top glance sar vmstat iostat dmesg 4TB 8TB 4GB

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

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

/dev/vx /dsk/swapvol swap swap -l swap -a Solaris /etc/lp /interfaces/*

/dev/rz0b raw swapon -s swapon -a Tru64 /usr/spool/lpd

/usr/lib/lp/lpshut /sbin/init.d/lpd stop /usr/lib /lp/lpsched /sbin/init.d/lpd start

lpd

lpsched

2 of 8

28-03-2012 15:07

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

http://www.unixguide.net/unixguide.shtml

Submit print jobs

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

cancel lprm lpadmin -p pq lpadmin -x pq lpadmin -d pq LINUX(RedHat) Solaris

cancel lprm lprsetup lprsetup export PRINTER="lp" Tru64

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/hostname.* /etc/sysconfig/network/etc/inet/* /etc/rc.config scripts/ /etc/defaultrouter /etc/hosts /etc/inet/hosts /etc/hosts

/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

/etc/nsswitch.conf /etc/svc.conf ndd /dev/[tcp|ip] ? in.routed ifconfig -a routed ifconfig -a

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

Increase the # of pseudoterminals

3 of 8

28-03-2012 15:07

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

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

512 remsh rsh /usr/lib/netsvc /yp/ypbind AIX /etc/exports /etc/xtab

{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 FreeBSD /etc/exports

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

rsh /sbin/ypbind LINUX(RedHat) /etc/exports /var/lib/nfs/xtab

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

2 TB 2 GB size} 8192 GB size}

Max File Size Max # File Descriptors DISK/LVM Commands

64 GB

128 GB

64 K AIX FreeBSD /etc/fstab df -k

60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan fdisk -v ad0 disklabel ad0 sub disk Volume Plex

sysctl fs.file-max LINUX(RedHat) /etc/fstab df -k cat /proc/devices

Filesystem table /etc/filesystems Free disk blocks df -k Device listing lsdev -C

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

/dev/vx/dsk/rootdg /dev/vol/rootdg vxprint -l -g rootdg volprint -l -g rootdg

4 of 8

28-03-2012 15:07

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

http://www.unixguide.net/unixguide.shtml

Prepare physical mkdev -c disk -l hdisk# disk List physical volume lspv vinum ld

pvcreate pvdisplay vgreduce vinum move -f drive object

pvcreate pvdisplay vgreduce

vxdiskadd vxprint -dl vxdg rmdisk

voldiskadd volprint -dl voldg rmdisk

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

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

vxdg deport vxdg import

voldg deport voldg import

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

chfs -a size=# /mt

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

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

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

lvmerge lvcreate -m 1 lvextend -m 1 lvcreate -i 3 -I 64

lvmerge vxassist mirror volassist make vol 100mb mirror=true

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

Reconfigure the kernel

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

kldstat kldload kldunload

modinfo modload modunload sys-unconfig prtconf isainfo -kv crash

install_assist bootinfo -r bootinfo -K crash

/stand/sysinstall sysctl hw.physmem

netsetup
uerf | grep memory

64
kdbx

crash

6 of 8

28-03-2012 15:07

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

http://www.unixguide.net/unixguide.shtml

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

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

truss uname -m uname -r

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

strace uname -m uname -r runlevel

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

trace uname -p sizer -v who -r

{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

Boot single user

ok boot -s

ok boot -s

>>> boot -fl s

Maintenance mode

ok boot -as

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

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

Stop-A ok go /etc/sysconfig/clock /etc/TIMEZONE /etc/default/init

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/

rpm -qf file /var/lib/rpm

pkgchk -l -p path /var/sadm /var/adm/smlogs

7 of 8

28-03-2012 15:07

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

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

scu scan edt scsimgr -scan_all

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/ad0s1c /dev/acd0c cd9660 /dev/rwt0d /dev/nrwt0d /dev/fd0 FreeBSD

/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

FreeBSD FAQ FreeBSD Hand Book

IT Resource Center Red Hat support 1-800-633-3600 1-888-REDHAT1 Linux Software Map RHCE

FreeBSD Primary Site

HP-UX Ports education.hp.com

UNIXguide.net English to Visayan Cebuano Dictionary

Suggest a Site Visayan Cebuano to English Dictionary

8 of 8

28-03-2012 15:07

You might also like