You are on page 1of 30

Directory Mappings

Root filesystem
Home directory

Sample configuration files


User Accounts
Password files
Groups file
Maximum 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 number of pseudo-terminals

Maximum number of ptys


Remote shell
YP/NIS service binder
System Files
NFS exported
NFS client-mounted directories
Maximum file system

Maximum file size


Maximum number 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 other 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
Miscellaneous
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
Miscellaneous
Machine model
OS Level
Run Level

Core dump files


Miscellaneous
Boot single user

Maintenance mode

Maintenance mode
Interrupt key
Return to console
Timezone management
NTP dmon
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
Free software
Fun links

Solaris
/ {/dev/vx/dsk/rootvol}
/export/home
/dev/vx/dsk/home}
/tmp
/dev/vx/dsk/swapvol}
/usr
/var
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 /tmp/a
vi /tmp/a/etc/shadow

useradd
userdel
logins
usermod
Solaris
hostid
admintool
top
sar
vmstat
iostat
dmesg
16TB

/dev/vx/dsk/swapvol
swap
swap -l
swap -a
Solaris
/etc/lp/interfaces/*
/usr/lib/lp/lpshut
/usr/lib/lp/lpsched
lp
lpr

lpstat

cancel
lprm

lpadmin -p pq
lpadmin -x pq
lpadmin -d pq
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 = #
{/etc/iu.ap}

{SYSV}

{BSD}

ptsl 0 # ldterm ttcompat


halt
boot -r
176
{BSD}
3000
{SYSV}
rsh
/usr/lib/netsvc/yp/ypbind
Solaris
/etc/dfs/dfstab
/etc/dfs/sharetab
/etc/rmtab
1 TB
8000 TB {vxfs}
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
/dev/vx/dsk/rootdg
vxprint -l -g rootdg
vxdiskadd
vxprint -dl
vxdg rmdisk
vxassist move
vxdg init

vxdg deport
vxdg import
vxedit set
vxprint -vl
vxassist make
vxassist growto
vxassist shrinkto
vxedit rm
vxbootsetup
vxva
mkfs -M

vxassist mirror
vxassist make vol 100mb layout=raid5

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

vi /etc/system
reboot

modinfo

modload
modunload
sys-unconfig
prtconf
isainfo -kv
crash
truss
Solaris
uname -imp
uname -r
who -r
S, s - single user mode, /etc/inittab not required, basic
filesystems mounted.
rc0 - firmware (sparc).

rc1 - administrator mode, local filesystems mounted, essential


system processes, also single user mode.
rc2 - multiuser mode, multiuser environment processes and
daemons.
rc3 - multiuser extended mode, local resources available over
network.
rc4 - alternative multiuser configuration, not necessary for
operation, usually unused.
rc5 rc6 a, b,
c run

power-down.
reboot.
c - /etc/inittab pseudo-state entries with the a, b, or
level set.

Q, q - re-examine /etc/inittab.
/var/crash/`uname -n`
Solaris
ok boot -s

ok boot -as

ok boot -as
Stop-A
ok go
/etc/TIMEZONE
/etc/default/init
/etc/inet/ntp.conf
/etc/init.d/xntpd
Solaris
pkgadd
pkgrm
pkginfo
pkginfo -i
pkginfo -p
pkgchk -l package
patchadd -p
pkgchk -l -p path
/var/sadm
Solaris
/devices
drvconfig
devlinks
disks
tapes
ports
rem_drv
prtconf -D
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
Sun freeware

Linux (RedHat)
{/dev/sda1}

Linux (RedHat)
/etc/passwd
/etc/shadow
/etc/group
65535
/etc/securetty
{ttyp1}
99
99
{lilo}
control-x
linux S
passwd root
{grub}
c
kernel vmlinuz-2.4.9-13 single
initrd /initrd-2.4.9-13.img
boot
passwd root
useradd
userdel
usermod
Linux (RedHat)
hostid
linuxconf
top
sar{sysstat}
vmstat
iostat{sysstat}
dmesg
64 GB {>2.3.24}
sysctl kernel.shmmax
900 MB

ro root=/dev/hda8

/dev/sda2
partition type 82
free
swapon -a
Linux
/var/spool/lpd/lp/*
/etc/init.d/lpd stop
/etc/init.d/lpd start
lpr

lpq

lprm

printtool

Linux (RedHat)
/etc/sysconfig/network-scripts/

/etc/hosts
/etc/nsswitch.conf
sysctl -a | grep net
routed
ifconfig -a
modprobe ip_alias
ifconfig eth0:1 IP
/etc/issue
cd /dev

./MAKEDEV -v pty

256
rsh
/sbin/ypbind
Linux (RedHat)
/etc/exports
/var/lib/nfs/xtab
2 TB
2 GB
8192 GB

{512B block size}


{8KB block size}

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
vgdisplay -v
pvchange
pvcreate
pvdisplay
vgreduce
pvmove
vgcreate
vgremove
vgchange

vgcfgrestore

vgexport
vgimport
vgscan
lvchange
lvdisplay
lvcreate
lvextend
lvreduce
lvremove
lilo
resize2fs
resize_reiserfs
lvsplit
lvmerge

lvcreate -i 3 -I 64

tar cvf /dev/rst0 /


tar xvf /dev/rst0
Linux (RedHat)
/etc/rc.d/rc
/boot/vmlinuz
sysctl -a

cd /usr/src/linux
make mrproper
make
make
make
make
make
make
make

menuconfig
dep
clean
bzImage
install
modules
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

insmod
rmmod
netconf
free
getconf LONG_BIT
lcrash
strace
Linux (RedHat)
uname -m
uname -r
runlevel
rc0 - system halted.

rc1 - single-user mode.

rc2-4 - multiuser modes, level 2 or 3 depends on


distro.
rc5 - multiuser with GUI, most (but not all)
distros.
rc6 - reboot system, return to default run level.

Linux (RedHat)
{lilo}
control-x
linux S
{grub}
c
kernel vmlinuz-2.4.9-13 single
initrd /initrd-2.4.9-13.img
boot

ro root=/dev/hda8

/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

rpm -qf file


/var/lib/rpm
Linux (RedHat)
/dev
/dev/MAKEDEV

cat /proc/cpuinfo
lspci
pnpdump

/dev/sda
/dev/cdrom
iso9660
/dev/rst0
/dev/nrst0
/dev/fd0

{ c 9 0}
{ c 9 128 }
Linux (RedHat)

Linux FAQ
Linux documentation Project
Red Hat support
Linux software map

AIX
{/dev/hd4}

/home

{/dev/hd1}

/tmp

{/dev/hd3}

/usr
/var
-

{/dev/hd2}
{/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/0512/" |

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 hdisknum
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
AIX
uname -m
bootinfo -m
oslevel
who -r
rc0 - reserved.

rc1 - reserved.

rc2 - (default) multiuser mode.

rc3-rc9 - administrator-defined.

/var/adm/ras
AIX
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 documentation
p5 TechSupport
Public-domain software library
AIX command primer

HP-UX
{/dev/vg00/lvol1}

/home

{/dev/vg00/lvol4}

/tmp

{/dev/vg00/lvol6}

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

useradd
userdel
logins
usermod
HP-UX
uname -i
sam
top
glance
sar
vmstat
iostat
dmesg
4TB
8TB
4GB

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

lpstat

cancel

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

/etc/hosts
/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
{MAXUSERS}
remsh
/usr/lib/netsvc/yp/ypbind
HP-UX
/etc/exports
/etc/xtab
128 GB

128 GB
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
pvdisplay
vgreduce
pvmove
vgcreate
vgremove
vgchange

vgcfgrestore

vgexport
vgimport
vgscan
lvchange
lvdisplay
lvcreate
lvextend
lvreduce
lvremove
lvlnboot
lvrmboot
extendfs /dev/vg00/lvol8
fsadm -F vxfs -b {LE * 1024} /mt
lvsplit
lvmerge
lvcreate -m 1
lvextend -m 1
lvcreate -i 3 -I 64
/opt/ignite/bin/make_recovery
fbackup
frecover
HP-UX
/sbin/rc
/stand/vmunix
sysdef
kmtun
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
tusc
HP-UX
model
uname -m
uname -r
who -r
rc0 - shut down, processes terminated, filesystems
unmounted.
rc1,s,S - single-user mode, services and daemons
terminated, filesystems unmounted.

rc2 - multiuser mode, without NFS.

rc3 - multiuser mode, normal operational.


rc4 - multiuser mode, with VUE (GUI).
rc6 - reboot.

/var/adm/crash
HP-UX
>boot
Interact with IPL ? Y
ISL>hpux -iS

>boot
Interact with IPL ? Y

ISL>hpux -lm
control-B
co
/etc/TIMEZONE
/etc/rc.config.d/netdaemons
/sbin/init.d/xntpd
HP-UX
swinstall
swremove
swlist
swlist -l fileset -a state
swlist -l file fileset
swlist -l patch
what /stand/vmunix
swlist -l file | grep path
/var/adm/sw/
HP-UX
/dev
insf -e

rmsf
lsdev
ioscan -fnC processor
ioscan -fnC tty
stm

/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
IT Resource Center
HP-UX ports
Developer downloads
Compiler (gcc)
HPsgdb(wdb)
Newer version of Perl

You might also like