0% found this document useful (0 votes)
82 views32 pages

Aix Freebsd Hp-Ux Directory Mappings

The document compares directory mappings, user accounts, and general commands on AIX, FreeBSD and HP-UX systems. It lists common directories like root filesystem, home, tmp, and usr directories and where they are mapped. It also lists where user accounts, groups and password files are typically located on each operating system. Finally it provides comparisons of general commands for tasks like viewing the unique host ID, monitoring performance, viewing logs and more.

Uploaded by

Eric Heyliger
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)
82 views32 pages

Aix Freebsd Hp-Ux Directory Mappings

The document compares directory mappings, user accounts, and general commands on AIX, FreeBSD and HP-UX systems. It lists common directories like root filesystem, home, tmp, and usr directories and where they are mapped. It also lists where user accounts, groups and password files are typically located on each operating system. Finally it provides comparisons of general commands for tasks like viewing the unique host ID, monitoring performance, viewing logs and more.

Uploaded by

Eric Heyliger
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/ 32

Directory Mappings 

AIX FreeBSD HP-UX

Root filesystem /              {/dev/hd4} /       {/dev/ad0s1a} /          {/dev/vg00/lvol1}

Home Directory /home          {/dev/hd1} /home      {/dev/vg00/lvol4}

/tmp           {/dev/hd3} /tmp       {/dev/vg00/lvol6}

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

/var        {/dev/hd9var} /var    {/dev/ad0s1e} /var       {/dev/vg00/lvol8}

Sample configuration
files - /usr/newconfig

User Accounts AIX FreeBSD HP-UX

/etc/passwd /etc/passwd /etc/passwd

Password files /etc/security/passwd /etc/master.passwd /tcb/files/auth/r/root

/etc/group /etc/group

Groups file /etc/security/group /etc/group /etc/logingroup

Maximum # of user ID 4294967295 65535 2147483647

/etc/security/user /etc/ttys  /etc/securetty

Allow/Deny remote
login
Allow/Deny remote
login {rlogin=true} {secure} {console}

User nobody's id # 4294967294 65534 -2

Group nobody's id # 4294967294 65534 -2(nogroup)

boot from CD/Tape ok boot -s >boot

Installation/Maintenance passwd root Interact with IPL ? Y

Start Limited Shell ISL>hpux -iS

getrootfs hdisk0 passwd root

vi /etc/security/passwd

Recover root password


Recover root password

Create new user mkuser adduser useradd

Delete user rmuser rmuser userdel

List users lsuser -f ALL logins

Modify user account chuser -a usermod

General Commands AIX FreeBSD HP-UX

Unique host ID hostid uname -i

Administrator smit sam

top top
Performance monitor monitor top glance

System activity
reporter sar sa sar

Virtual Memory
statistics vmstat vmstat vmstat

I/O statistics iostat iostat iostat

alog -o -t boot
Error logs errpt dmesg dmesg

Physical RAM 1TB 4TB

Shared Memory 2.75GB 8TB

Process Data Space 2GB 4GB

Swap device /dev/hd6 /dev/ad0s1b /dev/vg00/lvol2


Swap file type /etc/swapspaces swap swap

Display swap size lsps -a swapinfo swapinfo -a

Activate Swap swapon -a swapon -a swapon -a

Printers AIX FreeBSD HP-UX

Printer Queues /etc/qconfig /var/spool/print /etc/lp/interface/*

Stop LP  stopsrc -s lpd lpshut

Start LP startsrc -s lpd lpd lpsched


enq
lp
lpr
Submit print jobs qprt lp lp
enq -A
lpq
lpstat
LP statistics qchk lpq lpstat
cancel cancel
lprm lprm
qcan
Remove print jobs enq -x cancel

Add printer queue smit mkpq lpadmin -p pq

Remove Printer queue smit rmpq lpadmin -x pq

Make default printer export LPDEST="pq" lpadmin -d pq

TCP/IP AIX HP-UX

Network IP
configuration lsattr -E -l inet0 /etc/rc.conf /etc/rc.config.d/netconf
Network IP
configuration lsattr -E -l inet0 /etc/rc.conf /etc/rc.config.d/netconf

Hosts IP addresses /etc/hosts /etc/hosts /etc/hosts

Name service switch /etc/netsvc.conf /etc/host.conf /etc/nsswitch.conf

Network parameters no -a sysctl ndd -h

Routing daemon gated routed gated

NIC Configurations ifconfig -a ifconfig -a lanscan -v

Secondary IP Address ifconfig en0 alias IP  ifconfig xl0 alias IP ifconfig lan0:1 IP 

HERALD @

Login prompt /etc/security/login.cfg  telnetd -b /etc/issue 

odmget -q "attribute=num
and
uniquetype=pty/pty/pty"
PdAt | sed "s/0-64/0- rebuild your kernel with these
512/" | new values NPTY=# 
odmchange -q
"attribute=num and
uniquetype=pty/pty/pty"
-o PdAt NSTRPY=#

chdev -l pty0 -anum=256


-P reboot

reboot

insf -d ptys -n #

insf -d ptym -n #

Increase the # of insf -d pts -s # -e -v


pseudo-terminals

Maximum # of ptys 512 {MAXUSERS}


remsh
Remote Shell rsh rsh remsh

YP/NIS service binder /usr/lib/netsvc/yp/ypbind  /usr/sbin/ypbind /usr/lib/netsvc/yp/ypbind 

System Files AIX FreeBSD HP-UX

NFS exported /etc/exports /etc/exports /etc/exports


NFS exported /etc/exports /etc/exports /etc/exports

NFS Client mounted


directories /etc/xtab /etc/xtab

Max File System 128 GB 128 GB

Max File Size 64 GB 128 GB

Max # File Descriptors 64 K 60~ K

DISK/LVM
Commands AIX FreeBSD HP-UX:Disk &Filesystem

Filesystem table /etc/filesystems /etc/fstab /etc/fstab

Free disk blocks df -k df -k bdf

Device listing lsdev -C /sbin/ioscan

Disk information bootinfo -s hdisk#  fdisk -v ad0 diskinfo /dev/rdsk/c#t#d#


Disk information bootinfo -s hdisk#  fdisk -v ad0 diskinfo /dev/rdsk/c#t#d#

Disk Label lspv -l hdisk# disklabel ad0 pvdisplay -v /dev/dsk/C#t#d#

LVM Concepts Partition  sub disk logical extents

Volume Volume logical volume


Plex

Volume group volume group

Journal Filesystem type jfs vxfs

Default volume group /dev/rootvg /dev/vg00

Display volume group lsvg -l rootvg vgdisplay -v vg00

Modify physical
volume chpv pvchange

Prepare physical disk mkdev -c disk -l hdisk# pvcreate

List physical volume lspv vinum ld pvdisplay

Remove disk from


volume group reducevg vgreduce

Move logical volumes


to another physical
volumes migratepv vinum move -f drive object pvmove
Create volume group mkvg vgcreate

Remove volume group vgremove

chvg
Volume group varyonvg
availability varyoffvg vgchange

Restore volume group vgcfgrestore

Exports volume group exportvg vgexport

Imports volume group importvg vgimport

Volume group listing lsvg vgscan

Change logical volume


characteristics  chlv lvchange

List logical volume lslv vinum lv lvdisplay

Make logical volume mklv lvcreate

Extend logical volume extendlv lvextend

Reduce logical volume AIX reduce LV lvreduce

Remove logical volume rmlv vinum rm vol lvremove


Prepare boot volumes bootlist -m normal lvlnboot

Remove boot volumes lvrmboot

extendfs /dev/vg00/lvol8

fsadm -F vxfs -b
Extend File system chfs -a size=# /mt {LE * 1024} /mt

Reduce/Split mirrors rmlvcopy lvsplit

Merge mirrors lvmerge

Create mirrors mklv -c 2 vinum mirror drive lvcreate -m 1

Add mirrors mklvcopy lv 2  lvextend -m 1

Create striped volumes mklv -u 3 -S 64K vinum stripe drive lvcreate -i 3 -I 64

System recovery tape mksysb -i /dev/rmt0 /opt/ignite/bin/make_recovery

Backup savevg -i rootvg vinum saveconfig fbackup

Restore restvg  frecover

MISC AIX FreeBSD HP-UX

Startup script /etc/rc /etc/rc /sbin/rc


Kernel /usr/lib/boot/unix_up /kernel /stand/vmunix
sysdef

kmtune

Kernel Parameters lsattr -E -l sys0 sysctl -a kmsystem

cd /sys/i386/conf cd /stand/build

/usr/lbin/sysadm/system_prep
vi KERNEL -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
Reconfigure the kernel chdev -l sys0 -a 

List modules genkex kldstat kmadmin -s

Load module kldload kmadmin -L

Unload module kldunload kmadmin -U

Initialize system install_assist /stand/sysinstall set_parms initial

grep -i Physical
Physical RAM bootinfo -r sysctl hw.physmem /var/adm/syslog/syslog.log

Kernel Bits bootinfo -K getconf KERNEL_BITS

Crash utility crash crash adb

Trace System Calls syscalls truss tusc

uname -m model

Machine model bootinfo -m uname -m uname -m


OS Level oslevel uname -r uname -r

Run Level who -r who -r


Core dump files /var/adm/ras /var/adm/crash

Key on service mode/F4 >boot

Boot from CD/Tape Interact with IPL ? Y

Select Maintenance ISL>hpux -iS

Limited function Shell

Boot single user ok boot -s


>boot

Interact with IPL ? Y

Maintenance mode ok boot -as ISL>hpux -lm

Interrupt Key control-B

Return to console co

/etc/environment

Timezone Management /etc/profile /etc/localtime /etc/TIMEZONE


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

NTP Daemon startsrc -s xntpd /etc/rc.network /sbin/init.d/xntpd

Software AIX HP-UX

Install Software installp -a pkg_add swinstall

Uninstall software installp -u pkg_delete swremove

List installed software lslpp -L all pkg_info -a swlist

Verify installed
software lppchk -v swlist -l fileset -a state

List all files lslpp -f fileset pkg_info -L package swlist -l file fileset

swlist -l patch

List installed patches instfix -i what /stand/vmunix

Package owner lslpp -w path swlist -l file | grep path

SW Directory /usr/lpp /var/db/pkg /var/adm/sw/

Devices AIX FreeBSD HP-UX


Devices /dev /dev /dev

Install devices for


attached peripherals cfgmgr -v /dev/MAKEDEV insf -e
Remove device rmdev -l rmsf

Device drivers lscfg lsdev

CPU lsdev -Cc processor sysctl hw.model ioscan -fnC processor

List Terminal lsdev -Cc tty ioscan -fnC tty

Diagnostics diag pciconf -l stm

Whole Disk /dev/hdisk# /dev/ad0s1c /dev/dsk/c#t#d0

CDROM /dev/cd0 /dev/acd0c /dev/dsk/c#t2d0

CDROM file type cdrfs cd9660 cdfs

Rewinding tape drive /dev/rmt0 /dev/rwt0d /dev/rmt/0m

Non-rewinding tape
drive /dev/rmt0.1 /dev/nrwt0d /dev/rmt/0mn

Floppy drive /dev/rfd0 /dev/fd0 -

Links AIX FreeBSD HP-UX

FAQ AIX-FAQ FreeBSD FAQ HP-UX FAQ

Online Manual AIX 5.3 Docs FreeBSD Hand Book HP-UX Reference Manual

Technical Support p5 TechSupport IT Resource Center


Phone Number 1-800-CALL-AIX 1-800-633-3600

Free Software Public Domain Software FreeBSD


Library Primary Site HP-UX Ports

Certification www.ibm.com education.hp.com


LINUX(RedHat) SOLARIS Tru64

/                  {/dev/sda1} /  {/dev/vx/dsk/rootvol} /     {/dev/rz0a}

/export/home

       /dev/vx/dsk/home}
/tmp 

    /dev/vx/dsk/swapvol}

/usr  /usr    {/dev/rz0g}

/var

LINUX(RedHat) Solaris Tru64

/etc/passwd /etc/passwd 

/etc/shadow /etc/shadow /etc/passwd 

/etc/group /etc/group /etc/group

65535 2147483647 65535

/etc/securetty /etc/default/login /etc/securettys


{CONSOLE=/dev/console
{ttyp1} } {ttyp1}

99 60001 & 65534(nobody4) 65534

99 60002 & 65534(nogroup) 65534

press the HALT Button


{lilo} boot cdrom -s or (Control-P)

control-x mkdir /tmp/a >>>boot -fl s

mount /dev/c0t0d0s0
linux S /tmp/a lsmbstartup

passwd root vi /tmp/a/etc/shadow /sbin/bcheckrc

passwd root
{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 useradd

userdel userdel userdel

logins

usermod usermod usermod

LINUX(RedHat) Solaris Tru64

hostid hostid hostid

linuxconf admintool sysman

top top top

sar {sysstat} sar /usr/opt/svr4/bin/sar

vmstat vmstat vmstat

iostat {sysstat} iostat iostat

dmesg  dmesg uerf -R -o full

64 GB {>2.3.24} 16TB 4TB

sysctl kernel.shmmax

900 MB

/dev/sda2 /dev/vx/dsk/swapvol /dev/rz0b


partition type 82  swap raw

free swap -l swapon -s

swapon -a swap -a swapon -a

LINUX Solaris Tru64

/var/spool/lpd/lp/* /etc/lp/interfaces/* /usr/spool/lpd

/etc/init.d/lpd stop /usr/lib/lp/lpshut /sbin/init.d/lpd stop

/etc/init.d/lpd start /usr/lib/lp/lpsched /sbin/init.d/lpd start


lp lp
lpr lpr

lpr

lpq lpstat lpstat


cancel cancel
lprm lprm

lprm

printtool lpadmin -p pq lprsetup

lpadmin -x pq lprsetup

lpadmin -d pq export PRINTER="lp"

LINUX(RedHat) Solaris Tru64

/etc/hostname.*
/etc/inet/*

/etc/sysconfig/network-scripts/  /etc/rc.config
/etc/sysconfig/network-scripts/  /etc/defaultrouter /etc/rc.config

/etc/hosts /etc/inet/hosts /etc/hosts

/etc/nsswitch.conf /etc/nsswitch.conf /etc/svc.conf

sysctl -a | grep net ndd /dev/[tcp|ip] ?

routed in.routed routed

ifconfig -a ifconfig -a ifconfig -a

modprobe ip_alias

ifconfig eth0:1 IP ifconfig hme0:1 IP up ifconfig ln0 alias

BANNER @

/etc/issue /etc/default/telnetd /etc/issue

cd /dev {/etc/system} cd /dev


./MAKEDEV -v pty set pt_cnt = #   {SYSV} ./MAKEDEV PTY_1

set npty = #      {BSD}

{/etc/iu.ap}

ptsl 0 # ldterm ttcompat

halt
boot -r

176                {BSD}

256 3000              {SYSV} 8192

rsh rsh rsh

/sbin/ypbind /usr/lib/netsvc/yp/ypbind /usr/sbin/ypbind

LINUX(RedHat) Solaris Tru64

/etc/dfs/dfstab

/etc/exports /etc/exports
/etc/exports /etc/dfs/sharetab /etc/exports

/var/lib/nfs/xtab /etc/rmtab /var/adm/mountdtab

1 TB 128 GB {<= 3.2G}

8000 TB {vxfs} 512 GB {>= 4.0}

2 TB  16 TB {advfs}

2 GB     {512B block size}  1 TB 128 GB {<= 3.2G}

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

16 TB {advfs}

sysctl fs.file-max 64 K 64 K

LINUX(RedHat) SOLARIS Tru64

/etc/fstab /etc/vfstab /etc/fstab

df -k df -k df -k

cat /proc/devices sysdef

format -d c#t#d#

format>current

cat /proc/scsi/scsi0/sda/model file /dev/rrz0c


cat /proc/scsi/scsi0/sda/model format>inquiry file /dev/rrz0c

fdisk -l prtvtoc disklabel -p rz0

logical extents sub disk sub disk

logical volume Volume Volume


Plex Plex

volume group disk group disk group

ext3
reiserfs vxfs advfs

/dev/vx/dsk/rootdg /dev/vol/rootdg

vgdisplay -v vxprint -l -g rootdg volprint -l -g rootdg

pvchange

pvcreate vxdiskadd voldiskadd

pvdisplay vxprint -dl volprint -dl

vgreduce vxdg rmdisk voldg rmdisk

pvmove vxassist move volassist move


vgcreate vxdg init voldg init

vgremove

vgchange

vgcfgrestore

vgexport vxdg deport voldg deport

vgimport vxdg import voldg import

vgscan

lvchange  vxedit set voledit set

lvdisplay vxprint -vl volprint -vl

lvcreate vxassist make volassist make

lvextend vxassist growto volassist growto

lvreduce vxassist shrinkto volassist shrinkto

voledit -g rootdg -rf rm


lvremove vxedit rm vol1
lilo vxbootsetup

resize2fs vxva

resize_reiserfs mkfs -M

lvsplit

lvmerge

volassist make vol


vxassist mirror 100mb mirror=true

vxassist make vol 100mb volassist make vol


lvcreate -i 3 -I 64 layout=raid5 100mb layout=stripe

/usr/sys/bin/btcreate

tar cvf /dev/rst0 / ufsdump vdump

tar xvf /dev/rst0  ufsrestore vrestore

LINUX(RedHat) SOLARIS Tru64

/etc/rc.d/rc /etc/init.d /sbin/init.d


/boot/vmlinuz /kernel/genunix /vmunix
sysconfig

dxkerneltuner

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
doconfig

lsmod modinfo

insmod modload

rmmod modunload

netconf sys-unconfig netsetup

free prtconf uerf | grep memory

getconf LONG_BIT isainfo -kv 64

lcrash crash kdbx

strace truss trace

uname -m uname -imp uname -p


uname -r uname -r sizer -v

runlevel who -r who -r


/var/crash/`uname -n`

{lilo}

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 -s >>> boot -fl s

ok boot -as

Stop-A control-P

ok go

/etc/TIMEZONE /etc/svid3_tz

/etc/sysconfig/clock /etc/default/init timezone


rcmgr set XNTPD_CON
/etc/ntp.conf /etc/inet/ntp.conf F YES

/etc/rc.d/init.d/xntpd /etc/init.d/xntpd /sbin/init.d/xntpd

LINUX(RedHat) SOLARIS Tru64

rpm -i package pkgadd setld -l

rpm -e package pkgrm setld -d

rpm -qa pkginfo setld -i

pkginfo -i
rpm -V package pkginfo -p setld -v

rpm -ql package pkgchk -l package setld -i package

dupatch -track -type


patchadd -p patch

rpm -qf file pkgchk -l -p path

/var/lib/rpm /var/sadm /var/adm/smlogs

LINUX(RedHat) SOLARIS Tru64


/dev /devices /dev

drvconfig scu scan edt

devlinks scsimgr -scan_all


disks
tapes
/dev/MAKEDEV ports
rem_drv

prtconf -D

cat /proc/cpuinfo psrinfo -v 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/rz0c

/dev/cdrom /dev/dsk/c#t6d0s2 /dev/rz3c

iso9660 hsfs cdfs

/dev/rst0               { c 9 0} /dev/rmt/0 /dev/rmt0

/dev/nrst0           { c 9 128 } /dev/rmt/0n /dev/nrmt0

/dev/fd0 /dev/diskette /dev/fd0c

LINUX(RedHat) SOLARIS Tru64

LINUX FAQ Solaris 2 FAQ Tru64 FAQ

Linux Documentation Project Solaris 10 DocumentationTru64 Documents

Red Hat support SunSolve Alpha Systems Support


1-888-REDHAT1 1-800-USA-4SUN 1-800-474-6836

Linux Software Map Sun Freeware Tru64 Demos, Shareware & Freeware

RHCE suned.sun.com ASE

You might also like