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

Directory Mappings

This document provides information about directory mappings, user accounts, groups, login configuration, printing services, virtual memory statistics, volume groups, logical volumes, backups and restores, software installation and basic system administration commands for AIX, FreeBSD and HP-UX operating systems. It outlines directory structures, user and group IDs, commands to manage users, printers, disks, memory and more. Key files, daemons and utilities are listed for system configuration, monitoring and maintenance.

Uploaded by

ptwobtwo
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 XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Directory Mappings

This document provides information about directory mappings, user accounts, groups, login configuration, printing services, virtual memory statistics, volume groups, logical volumes, backups and restores, software installation and basic system administration commands for AIX, FreeBSD and HP-UX operating systems. It outlines directory structures, user and group IDs, commands to manage users, printers, disks, memory and more. Key files, daemons and utilities are listed for system configuration, monitoring and maintenance.

Uploaded by

ptwobtwo
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 XLS, PDF, TXT or read online on Scribd
You are on page 1/ 30

Directory Mappings 

Root filesystem
Home Directory

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 #
Recover root password

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
Submit print jobs

LP statistics

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

Increase the # of pseudo-terminals


Maximum # of ptys

Remote Shell

YP/NIS service binder


System Files
NFS exported

NFS Client mounted directories


Max File System

Max File Size

Max # File Descriptors


DISK/LVM Commands
Filesystem table
Free disk blocks
Device listing
Disk information

Disk Label
LVM Concepts

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

Reconfigure the kernel

List modules
Load module
Unload module
Initialize system
Physical RAM
Kernel Bits
Crash utility
Trace System Calls
Machine model

OS Level
Run Level
Core dump files
Boot single user

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
Install devices for attached peripherals
Remove device
Device drivers
CPU
List Terminal
Diagnostics

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
AIX
/              {/dev/hd4}
/home          {/dev/hd1}

/tmp           {/dev/hd3}

/usr           {/dev/hd2}
/var        {/dev/hd9var}
-
AIX
/etc/passwd
/etc/security/passwd
/etc/group
/etc/security/group
4294967295
/etc/security/user
{rlogin=true}
4294967294
4294967294
boot from CD/Tape
Installation/Maintenance
Start Limited Shell
getrootfs hdisk0
vi /etc/security/passwd

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

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

/etc/xtab
128 GB

64 GB

64 K
AIX
/etc/filesystems
df -k
lsdev -C
bootinfo -s hdisk# 

lspv -l hdisk#
Partition 
Volume

Volume group
jfs

/dev/rootvg
lsvg -l rootvg
chpv
mkdev -c disk -l hdisk#
lspv
reducevg
migratepv
mkvg

chvg

varyonvg
varyoffvg
exportvg
importvg
lsvg
chlv
lslv
mklv
extendlv
AIX reduce LV
rmlv
bootlist -m normal

chfs -a size=# /mt

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
lsattr -E -l sys0

chdev -l sys0 -a 

genkex

install_assist
bootinfo -r
bootinfo -K
crash
syscalls
uname -m
bootinfo -m
oslevel
who -r
/var/adm/ras
Key on service mode/F4
Boot from CD/Tape
Select Maintenance
Limited function Shell

/etc/environment
/etc/profile
/etc/ntp.conf
startsrc -s xntpd
AIX
installp -a
installp -u
lslpp -L all
lppchk -v

lslpp -f fileset
instfix -i

lslpp -w path
/usr/lpp
AIX
/dev
cfgmgr -v
rmdev -l
lscfg
lsdev -Cc processor
lsdev -Cc tty
diag

/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
FreeBSD HP-UX
/       {/dev/ad0s1a} /          {/dev/vg00/lvol1}
/home      {/dev/vg00/lvol4}

/tmp       {/dev/vg00/lvol6}

/usr    {/dev/ad0s1f} /usr       {/dev/vg00/lvol7}


/var    {/dev/ad0s1e} /var       {/dev/vg00/lvol8}
/usr/newconfig
FreeBSD HP-UX
/etc/passwd /etc/passwd
/etc/master.passwd /tcb/files/auth/r/root
/etc/group /etc/group
/etc/logingroup
65535 2147483647
/etc/ttys  /etc/securetty
{secure} {console}
65534 -2
65534 -2(nogroup)
ok boot -s >boot
passwd root Interact with IPL ? Y
ISL>hpux -iS
passwd root

adduser useradd
rmuser userdel
logins
usermod
FreeBSD HP-UX
uname -i
sam
top top

glance
sa sar
vmstat vmstat
iostat iostat
dmesg dmesg

4TB
8TB
4GB
/dev/ad0s1b /dev/vg00/lvol2
swap swap
swapinfo swapinfo -a
swapon -a swapon -a
FreeBSD HP-UX
/var/spool/print /etc/lp/interface/*
lpshut
lpd lpsched
lp lp

lpq lpstat

cancel cancel
lprm

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

/etc/hosts /etc/hosts
/etc/host.conf /etc/nsswitch.conf
sysctl ndd -h
routed gated
ifconfig -a lanscan -v
ifconfig xl0 alias IP 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
{MAXUSERS}

rsh remsh

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

/etc/xtab
128 GB

128 GB

60~ K
FreeBSD HP-UX:Disk &Filesystem
/etc/fstab /etc/fstab
df -k bdf
/sbin/ioscan
fdisk -v ad0 diskinfo /dev/rdsk/c#t#d#

disklabel ad0 pvdisplay -v /dev/dsk/C#t#d#


sub disk logical extents
Volume logical volume
Plex
volume group
vxfs

/dev/vg00
vgdisplay -v vg00
pvchange
pvcreate
vinum ld pvdisplay
vgreduce
vinum move -f drive object pvmove
vgcreate
vgremove
vgchange

vgcfgrestore
vgexport
vgimport
vgscan
lvchange
vinum lv lvdisplay
lvcreate
lvextend
lvreduce
vinum rm vol lvremove
lvlnboot
lvrmboot
extendfs /dev/vg00/lvol8
fsadm -F vxfs -b {LE * 1024} /mt
lvsplit
lvmerge
vinum mirror drive lvcreate -m 1
lvextend -m 1
vinum stripe drive lvcreate -i 3 -I 64
/opt/ignite/bin/make_recovery
vinum saveconfig fbackup
frecover
FreeBSD HP-UX
/etc/rc /sbin/rc
/kernel /stand/vmunix
sysctl -a sysdef
kmtune
kmsystem
cd /sys/i386/conf cd /stand/build
vi KERNEL /usr/lbin/sysadm/system_prep -v -s system
config KERNEL vi system
cd ../../compile/KERNEL mk_kernel -s system
make depend cd /stand
make mv system system.prev
make install mv vmunix vmunix.prev
mv dlkm dlkm.prev
mv /stand/build/system system
kmupdate /stand/build/vmunix_test

kldstat kmadmin -s
kldload kmadmin -L
kldunload kmadmin -U
/stand/sysinstall set_parms initial
sysctl hw.physmem grep -i Physical /var/adm/syslog/syslog.log
getconf KERNEL_BITS
crash adb
truss tusc
uname -m model
uname -m
uname -r uname -r
who -r
/var/adm/crash
ok boot -s >boot
Interact with IPL ? Y
ISL>hpux -iS

ok boot -as >boot


Interact with IPL ? Y
ISL>hpux -lm
control-B
co
/etc/localtime /etc/TIMEZONE

/etc/rc.conf {xntpd_enable="YES"} /etc/rc.config.d/netdaemons


/etc/rc.network /sbin/init.d/xntpd
HP-UX
pkg_add swinstall
pkg_delete swremove
pkg_info -a 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 /var/adm/sw/
FreeBSD HP-UX
/dev /dev
/dev/MAKEDEV insf -e
rmsf
lsdev
sysctl hw.model ioscan -fnC processor
ioscan -fnC tty
pciconf -l stm

/dev/ad0s1c /dev/dsk/c#t#d0
/dev/acd0c /dev/dsk/c#t2d0
cd9660 cdfs
/dev/rwt0d /dev/rmt/0m
/dev/nrwt0d /dev/rmt/0mn
/dev/fd0 -
FreeBSD HP-UX
FreeBSD FAQ HP-UX FAQ
FreeBSD Hand Book HP-UX Reference Manual
IT Resource Center
1-800-633-3600
FreeBSD Primary Site HP-UX Ports
education.hp.com
LINUX(RedHat) SOLARIS
/                  {/dev/sda1} /  {/dev/vx/dsk/rootvol}
/export/home
       /dev/vx/dsk/home}
/tmp 
    /dev/vx/dsk/swapvol}
/usr 
/var

LINUX(RedHat) Solaris
/etc/passwd /etc/passwd 
/etc/shadow /etc/shadow
/etc/group /etc/group

65535 2147483647
/etc/securetty /etc/default/login
{ttyp1} {CONSOLE=/dev/console}
99 60001 & 65534(nobody4)
99 60002 & 65534(nogroup)
{lilo} boot cdrom -s
control-x mkdir /tmp/a
linux S mount /dev/c0t0d0s0 /tmp/a
passwd root vi /tmp/a/etc/shadow

{grub}
c
kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8
initrd /initrd-2.4.9-13.img
boot
passwd root
useradd useradd
userdel userdel
logins
usermod usermod
LINUX(RedHat) Solaris
hostid hostid
linuxconf admintool
top top

sar {sysstat} sar


vmstat vmstat
iostat {sysstat} iostat
dmesg  dmesg

64 GB {>2.3.24} 16TB
sysctl kernel.shmmax
900 MB
/dev/sda2 /dev/vx/dsk/swapvol
partition type 82  swap
free swap -l
swapon -a swap -a
LINUX Solaris
/var/spool/lpd/lp/* /etc/lp/interfaces/*
/etc/init.d/lpd stop /usr/lib/lp/lpshut
/etc/init.d/lpd start /usr/lib/lp/lpsched
lpr lp
lpr

lpq lpstat

lprm cancel
lprm

printtool lpadmin -p pq
lpadmin -x pq
lpadmin -d pq
LINUX(RedHat) Solaris
/etc/sysconfig/network-scripts/  /etc/hostname.*
/etc/inet/*
/etc/defaultrouter
/etc/hosts /etc/inet/hosts
/etc/nsswitch.conf /etc/nsswitch.conf
sysctl -a | grep net ndd /dev/[tcp|ip] ?
routed in.routed
ifconfig -a ifconfig -a
modprobe ip_alias ifconfig hme0:1 IP up
ifconfig eth0:1 IP
/etc/issue BANNER @
/etc/default/telnetd
cd /dev {/etc/system}
./MAKEDEV -v pty set pt_cnt = #   {SYSV}
set npty = #      {BSD}

{/etc/iu.ap}
ptsl 0 # ldterm ttcompat

halt
boot -r
256 176                {BSD}
3000              {SYSV}
rsh rsh

/sbin/ypbind /usr/lib/netsvc/yp/ypbind
LINUX(RedHat) Solaris
/etc/exports /etc/dfs/dfstab
/etc/dfs/sharetab
/var/lib/nfs/xtab /etc/rmtab
2 TB  1 TB
8000 TB {vxfs}

2 GB     {512B block size}  1 TB


8192 GB  {8KB block size}  2 GB {=<2.5.1}

sysctl fs.file-max 64 K
LINUX(RedHat) SOLARIS
/etc/fstab /etc/vfstab
df -k df -k
cat /proc/devices sysdef
cat /proc/scsi/scsi0/sda/model format -d c#t#d#
format>current
format>inquiry
fdisk -l prtvtoc
logical extents sub disk
logical volume Volume
Plex
volume group disk group
ext3 vxfs

reiserfs
/dev/vx/dsk/rootdg
vgdisplay -v vxprint -l -g rootdg
pvchange
pvcreate vxdiskadd
pvdisplay vxprint -dl
vgreduce vxdg rmdisk
pvmove vxassist move
vgcreate vxdg init
vgremove
vgchange

vgcfgrestore
vgexport vxdg deport
vgimport vxdg import
vgscan
lvchange  vxedit set
lvdisplay vxprint -vl
lvcreate vxassist make
lvextend vxassist growto
lvreduce vxassist shrinkto
lvremove vxedit rm
lilo vxbootsetup

resize2fs vxva
resize_reiserfs mkfs -M
lvsplit
lvmerge
vxassist mirror

lvcreate -i 3 -I 64 vxassist make vol 100mb layout=raid5

tar cvf /dev/rst0 / ufsdump


tar xvf /dev/rst0  ufsrestore
LINUX(RedHat) SOLARIS
/etc/rc.d/rc /etc/init.d
/boot/vmlinuz /kernel/genunix
sysctl -a sysdef -i

cd /usr/src/linux  vi /etc/system
make mrproper  reboot
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/initrd-2.2.16.img 2.2.16
vi /etc/lilo.conf
lilo

lsmod modinfo
insmod modload
rmmod modunload
netconf sys-unconfig
free prtconf
getconf LONG_BIT isainfo -kv
lcrash crash
strace truss
uname -m uname -imp

uname -r uname -r
runlevel who -r
/var/crash/`uname -n`
{lilo} ok boot -s
control-x
linux S

{grub}
c
kernel vmlinuz-2.4.9-13 single   ro root=/dev/hda8
initrd /initrd-2.4.9-13.img
boot
ok boot -as

Stop-A
ok go
/etc/sysconfig/clock /etc/TIMEZONE
/etc/default/init
/etc/ntp.conf /etc/inet/ntp.conf
/etc/rc.d/init.d/xntpd /etc/init.d/xntpd
LINUX(RedHat) SOLARIS
rpm -i package pkgadd
rpm -e package pkgrm
rpm -qa pkginfo
rpm -V package pkginfo -i

pkginfo -p
rpm -ql package pkgchk -l package
patchadd -p

rpm -qf file pkgchk -l -p path


/var/lib/rpm /var/sadm
LINUX(RedHat) SOLARIS
/dev /devices
/dev/MAKEDEV drvconfig
devlinks
disks
tapes
ports
rem_drv
prtconf -D
cat /proc/cpuinfo psrinfo -v
pmadm -l
lspci /usr/platform/`uname -m`/
pnpdump sbin/prtdiag
ok test-all
/opt/SUNWvts/bin/sunvts
/dev/sda /dev/c#t#d0s2
/dev/cdrom /dev/dsk/c#t6d0s2
iso9660 hsfs
/dev/rst0               { c 9 0} /dev/rmt/0
/dev/nrst0           { c 9 128 } /dev/rmt/0n
/dev/fd0 /dev/diskette
LINUX(RedHat) SOLARIS
LINUX FAQ Solaris 2 FAQ
Linux Documentation Project Solaris 10 Documentation
Red Hat support SunSolve
1-888-REDHAT1 1-800-USA-4SUN
Linux Software Map Sun Freeware
RHCE suned.sun.com
Tru64
/     {/dev/rz0a}

/usr    {/dev/rz0g}

Tru64
/etc/passwd 

/etc/group

65535
/etc/securettys
{ttyp1}
65534
65534
press the HALT Button or (Control-P)
>>>boot -fl s
lsmbstartup
/sbin/bcheckrc
passwd root

useradd
userdel

usermod
Tru64
hostid
sysman
top

/usr/opt/svr4/bin/sar
vmstat
iostat
uerf -R -o full

4TB
/dev/rz0b
raw
swapon -s
swapon -a
Tru64
/usr/spool/lpd
/sbin/init.d/lpd stop
/sbin/init.d/lpd start
lp
lpr

lpstat

cancel
lprm

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

/etc/hosts
/etc/svc.conf

routed
ifconfig -a
ifconfig ln0 alias

/etc/issue

cd /dev
./MAKEDEV PTY_1
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

file /dev/rrz0c

disklabel -p rz0
sub disk
Volume
Plex
disk group
advfs

/dev/vol/rootdg
volprint -l -g rootdg

voldiskadd
volprint -dl
voldg rmdisk
volassist move
voldg init
voldg deport
voldg import

voledit set
volprint -vl
volassist make
volassist growto
volassist shrinkto
voledit -g rootdg -rf rm vol1

volassist make vol 100mb mirror=true

volassist make vol 100mb layout=stripe


/usr/sys/bin/btcreate
vdump
vrestore
Tru64
/sbin/init.d
/vmunix
sysconfig
dxkerneltuner

doconfig

netsetup
uerf | grep memory
64
kdbx
trace
uname -p

sizer -v
who -r

>>> boot -fl s

control-P

/etc/svid3_tz
timezone
rcmgr set XNTPD_CONF YES
/sbin/init.d/xntpd
Tru64
setld -l
setld -d
setld -i
setld -v

setld -i package
dupatch -track -type patch

/var/adm/smlogs
Tru64
/dev
scu scan edt
scsimgr -scan_all
psrinfo -v

/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

You might also like