Professional Documents
Culture Documents
Page 1 of 5
Man Pages
Directory Mappings
User Accounts
General Commands
Printers
TCP/IP
System Files
LVM Commands
Miscellaneous Commands
Software
Devices
AFS
Other References
Directory Mappings
AIX
RedHat Linux
/
/dev/sda2 if SCSI
/dev/hda2 if IDE
/dev/hd4
Home Directories
O.S. Executables
Temporary Space
System Variable Data
/home
/dev/hd1
/usr
/dev/hd2
/tmp
/dev/hd3
/var
/dev/hd9var
Boot
Paging
/dev/hd5
/boot
/dev/sda1 if SCSI
/dev/hda1 if IDE
See also the Filesystem Hierachy Standard (FHS) for a fuller discussion of the "proper" UNIX file system hierarchy.
Linux has three sets of apparently duplicate directories; /bin & /usr/bin, /sbin & /usr/sbin, and /lib & /usr/lib. This can be
a source of confusion. Under AIX for example, ksh is the default shell and it's normal to see #!/usr/bin/ksh in the first
line of a ksh script. Under Linux, bash (the Bourne-Again Shell) is the default shell and ksh is NOT in /usr/bin/ksh,
leading one to believe Linux does not have ksh. Not true. Under Linux, ksh is at /bin/ksh. (Actually, since /bin is a link
to /usr/bin under AIX, ksh is also at /bin/ksh, so to make bilinugual scripts, #!/bin/ksh is best.)
The reason for these apparently duplicate directories is, in the initial boot phases or when Linux boots into single-user
mode (which is the same thing), only the root file system is mounted. It's true that by default, /usr is in the root file
system, but it may not be. It might be configured in its own partition or even NFS mounted from another machine in R/O
mode. Given this, everything needed to boot Linux or will be needed to repair a broken system, needs to be in the root
file system. Yet to keep the root file system as small as possible, all non-essential files are kept under /usr.
This is also why they say that those 5 directories (/bin, /sbin, /etc, /dev, and /lib) must be in the root partition.
User Accounts
AIX
RedHat Linux
Password Files
/etc/passwd
/etc/security/passwd
/etc/passwd
/etc/shadow
Allow/Deny root's
Remote telnet
Login
rlogin=true
in /etc/security/user stanza
Recover root's
Password
mkuser
useradd
http://rick.jasperfamily.org/linux/quickstart.html
14-09-2013
Delete user
Page 2 of 5
rmuser
userdel
The same as their userid, both name and number.
E.G. User Name=jasper, User ID=10167, Group
Name=jasper, Group ID=10167
General Commands
Absolute Path tar
AIX
RedHat Linux
tar cvf
foo.tar /etc/passwd
ping -b -c 1 10.224.88.255
Admin Helpers
smit or smitty
Performance Monitor
top
lsof
monitor
System Activity
Reporter
sar
sar
sysstat
I/O Statistics
iostat
iostat
sysstat
alog -o -t boot
dmesg
lsps -a
free
Printers
Printer Queues
top
lsof
AIX
RedHat Linux
/etc/qconfig
/var/spool/lpd/lp/*
startsrc -s lpd
stopsrc -s lpd
lssrc
-s lpd
enq
lp
lpr
qprt
lpr
LP Statistics
enq -A
lpq
lpstat
qchk
lpq
cancel
lprm
qcan
enq -x
lprm
smit mkpq
redhat-config-printer
printtool
smit rmpq
Default Printer
TCP/IP
AIX
lsattr
-E
-l
inet0
Network IP Configuration
/etc/netsvc.conf
Name Service Switch
no -a
Network Parameters
RedHat Linux
/etc/sysconfig/network-scripts/ifcfg-eth*
/etc/nsswitch.conf
sysctl -a | grep net
Secondary IP Address
modprobe ip_alias
ifconfig eth0:1 w.x.y.z
Login Prompt/Herald
/etc/security/login.cfg
/etc/issue
System Files
AIX
RedHat Linux
NFS Client Mounted Directories /etc/xtab /var/lib/nfs/xtab
128 GB
2 TB
Max File System Size
http://rick.jasperfamily.org/linux/quickstart.html
14-09-2013
Page 3 of 5
2 GB
64 GB
8192 GB
LVM Commands
Filesystem Table
Device Listing
Disk Information
LVM Concepts
AIX
RedHat Linux
/etc/filesystems
/etc/fstab
lsdev -C
cat /proc/devices
bootinfo -s hdisk#
cat /proc/scsi/scsi0/sda/model
Partition
Logical Extents
Volume
Logical Volume
jfs
ext3
reiserfs
/dev/rootvg
None
lsvg -l rootvg
vgdisplay -v
chpv
pvchange
pvdisplay
reducevg
vgreduce
migratepv
pvmove
mkvg
vgcreate
varyoffvg
exportvg
vgremove
chvg
varyonvg
varyoffvg
vgchange
importvg
vgcfgrestore
exportvg/importvg
vgexport/vgimport
lsvg
vgscan
chlv
lvchange
lslv
lvdisplay
mklv
lvcreate
extendlv
lvextend
rmlv
lvremove
bootlist -m normal
resize2fs
rmlvcopy
lvsplit
Reduce/Split Mirrors
Merge Mirrors
Create Mirrors
Add Mirrors
Create Striped Volumes
System Recovery Tape
Backup
Restore
lvmerge
mklv -c 2
mklvcopy lv 2
mklv -u 3 -S 64K
lvcreate -i 3 -I 64
mksysb -i /dev/rmt0
savevg -i rootvg
restvg
Miscellaneous
Commands
Startup script
/etc/rc
/etc/rc.d/rc
Kernel
/usr/lib/boot/unix_up
/boot/vmlinuz (compressed)
/boot/vmlinux (uncompressed)
AIX
RedHat Linux
http://rick.jasperfamily.org/linux/quickstart.html
14-09-2013
Page 4 of 5
lsattr -E -l sys0
no -a
Kernel Parameters
sysctl -a
cd /usr/src/linux
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
cd /boot
mv initrd-2.4.21-20.ELsmp initrd-2.4.2120.ELsmp.save
mkinitrd initrd-2.4.21-20.ELsmp $(uname -r)
chdev -l sys0 -a
vi /boot/grub/grub.conf
List modules
Load module
Unload module
Initialize System
Physical RAM
Kernel Bits
Crash Utility
Trace System Calls
OS Level
Run Level
Tape Control
Core Dump Files
genkex
lsmod
insmod
rmmod
install_assist
netconf
bootinfo -r
free
bootinfo -K
getconf WORD_BIT
crash
lcrash
syscalls
strace
oslevel
uname -r
who -r
runlevel
tctl
mt
/var/adm/ras
Timezone Management
/etc/environment
/etc/profile
/etc/sysconfig/clock
NTP Daemon
/etc/ntp.conf
startsrc -s xntpd
stopsrc -s xntpd
lssrc -s xntpd
/etc/ntp.conf
service xntpd start
service ntpd stop
service ntpd status
Software
Install Software
Uninstall Software
List Installed
Software
Verify Installed
Software
AIX
RedHat Linux
installp -a
rpm -i package
installp -u
rpm -e package
rpm -V package
List Files
lslpp -f
fileset
List Installed
Patches
instfix -i
Package Owner
lslpp -w
path
SW Directory
/usr/lpp
/var/lib/rpm
Devices
Install Devices
Remove Device
AIX
cfgmgr -v
RedHat Linux
/dev/MAKEDEV
rmdev -l
http://rick.jasperfamily.org/linux/quickstart.html
14-09-2013
Page 5 of 5
Device Drivers
CPU
List Terminal
lscfg
Diagnostics
diag
lspci
pnpdump
Whole Disk
CDROM
CDROM File System Type
Rewinding Tape Drive
Non-rewinding Tape Drive
Floppy Drive
/dev/hdisk#
/dev/sda
/dev/cd0
/dev/cdrom
cdrfs
iso9660
/dev/rmt0
/dev/rst0
/dev/rmt0.1
/dev/nrst0
/dev/rfd0
/dev/fd0
AFS
Code Source
{ c 9 0}
{ c 9 128 }
AIX
RedHat Linux
www.openafs.org
AFS Cache
system before installing AFS.
/usr/vice/cache 100MB is minimum. 1GB is better.
Same.
Install
Directions
mkdir /tmp/afs
cd /tmp/afs
scp -p
jasper@jasper:/afs/d/software/base/linux/openafs1.2.11/* .
rpm -ivh *rpm
vi /usr/vice/etc/cacheinfo and set the cache size
to 95% of the number of 1K blocks
cd /tmp
of /usr/vice/cache. 95% of 1GB (my standard), is
ftp jasper
cd /afs/d/software/base/AFS_3.6 953850.
get afsinstall.sh
vi /usr/vice/etc/ThisCell
set the cell name to delphion.com.
get afsclient-42.tar
vi /usr/vice/etc/CellServDB
quit
replace all existing lines with
chmod +x afsinstall.sh
>delphion.com # Thomson-Delphion
./afsinstall.sh afsclient-42.tar
rm afsinstall.sh afsclient-42.tar 10.224.88.241 #afs1.delphion.com
To start AFS, service afs start
To allow AFS-authenticated logins, ftp's, etc,
cd /etc/pam.d
cp -p system-auth system-auth.Before.AFS
cp -p --reply=yes /tmp/afs/system-auth systemauth
rm -rf /tmp/afs
@sys
(fs sysname)
rs_aix42
DelphionStandard
Links
Other References
FAQ
Online Manual
Technical Support
Phone Number
Free Software
Certification
i386_linux24
AIX
RedHat Linux
AIX-FAQ
Linux FAQ
1-888-REDHAT1
Bull
www.ibm.com
http://rick.jasperfamily.org/linux/quickstart.html
14-09-2013