Académique Documents
Professionnel Documents
Culture Documents
LINUX
DIFFERENCE
Directory
Mappings
AIX
RedHat Linux
/dev/hd4
/
/dev/sda2 if SCSI
/dev/hda2 if IDE
/dev/hd1
/dev/hd2
/dev/hd3
System Variable
/var
Data
/dev/hd9var
Boot
/dev/hd5
/boot
/dev/sda1 if SCSI
/dev/hda1 if IDE
Logical Volume
type=paging
Paging
User
Accounts
Password
Files
AIX
/etc/passwd
/etc/security/passwd
Allow/Deny
rlogin=true in
roots
/etc/security/user stanza
Remote
telnet Login
Recover
roots
Password
RedHat Linux
/etc/passwd
/etc/shadow
Create new
mkuser
user
useradd
userdel
Default User
staff=Group ID 1
Group
General
Commands
AIX
RedHat Linux
ping -b -c 1 10.224.88.255
41 redhat-config-* programs in
/usr/sbin & /usr/bin
Performance
Monitor
top
lsof
monitor
top
lsof
System
Activity
Reporter
sar
sar
sysstat
I/O Statistics
iostat
iostat
sysstat
Boot-Time
Error L
og
alog -o -t boot
dmesg
Display Swap
Size
lsps -a
free
Printers
AIX
RedHat Linux
Printer Queues
/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
Remove Printer
Queue
smit rmpq
Default Printer
export LPDEST="pq"
TCP/IP
AIX
RedHat Linux
Network IP
Configuration
lsattr -E -l inet0
/etc/sysconfig/networkscripts/ifcfg-eth*
Name Service
Switch
/etc/netsvc.conf
/etc/nsswitch.conf
Network
Parameters
no -a
Secondary IP
Address
modprobe ip_alias
ifconfig eth0:1 w.x.y.z
Login
/etc/security/login.cfg
Prompt/Herald
System Files
/etc/issue
AIX
RedHat Linux
/etc/xtab
/var/lib/nfs/xtab
128 GB
2 TB
64 GB
2 GB
8192 GB
LVM Commands
AIX
RedHat Linux
Filesystem Table
/etc/filesystems
/etc/fstab
Device Listing
lsdev -C
cat /proc/devices
Disk Information
bootinfo -s hdisk#
cat
/proc/scsi/scsi0/sda/model
LVM Concepts
Partition
Logical Extents
Volume
Logical Volume
ext3
reiserfs
/dev/rootvg
None
lsvg -l rootvg
vgdisplay -v
pvchange
pvcreate
mkdev -c disk -l
hdisk#
lspv
pvdisplay
reducevg
vgreduce
pvmove
mkvg
vgcreate
varyoffvg
exportvg
vgremove
Volume Group
Availability
chvg
varyonvg
varyoffvg
vgchange
importvg
vgcfgrestore
Export/Import Volume
Group
exportvg/importvg
vgexport/vgimport
lsvg
vgscan
chlv
lvchange
lslv
lvdisplay
mklv
lvcreate
extendlv
lvextend
AIX Reduce LV
Procedure
lvreduce
lvremove
bootlist -m normal
grub-install /dev/sda2 if
SCSI
grub-install /dev/hda2 if
IDE
resize2fs
Reduce/Split Mirrors
rmlvcopy
lvsplit
Merge Mirrors
lvmerge
Create Mirrors
mklv -c 2
Add Mirrors
mklvcopy lv 2
lvcreate -i 3 -I 64
mksysb -i /dev/rmt0
Backup
savevg -i rootvg
Restore
restvg
Miscellaneous
Commands
AIX
RedHat Linux
/etc/rc.d/rc
Kernel
/usr/lib/boot/unix_up
/boot/vmlinuz (compressed)
/boot/vmlinux (uncompressed)
Kernel
Parameters
lsattr -E -l sys0
no -a
sysctl -a
Reconfigure
the Kernel
chdev -l sys0 -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 initrd2.4.21-20.ELsmp.save
mkinitrd initrd-2.4.21-20.ELsmp $
(uname -r)vi /boot/grub/grub.conf
List modules
genkex
lsmod
Load module
insmod
Unload
module
rmmod
Initialize
System
install_assist
netconf
free
Kernel Bits
bootinfo -K
getconf WORD_BIT
Crash Utility
crash
lcrash
Trace System
syscalls
Calls
strace
OS Level
oslevel
uname -r
Run Level
who -r
runlevel
Tape Control
tctl
Core Dump
Files
/var/adm/ras
mt
/etc/environment
Timezone
Management /etc/profile
NTP Daemon
Software
/etc/sysconfig/clock
/etc/ntp.conf
startsrc -s xntpd
stopsrc -s xntpd
lssrc -s xntpd
/etc/ntp.conf
service xntpd start
service ntpd stop
service ntpd status
AIX
RedHat Linux
Install
Software
Uninstall
Software
List
Installed
Software
lslpp -L
all
rpm -qa
Verify
Installed
Software
lppchk -v
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
cfgmgr
Rescan
SCSI Bus
AFS
Code
Source
AIX
IBM Transarc's Lab
RedHat Linux
www.openafs.org
AFS
Cache
/usr/vice/
cache
Should be defined as
its own file system
before installing AFS. Same.
100MB is minimum. 1GB
is better.
mkdir /tmp/afs
cd /tmp/afs
scp -p
jasper@jasper:/afs/d/software/base/linux
/openafs-1.2.11/* .
rpm -ivh *rpm
cd /tmp
vi /usr/vice/etc/cacheinfo and set the
ftp jasper
cache size to 95% of the number of 1K
cd
blocks of /usr/vice/cache. 95% of 1GB
/afs/d/software/base/AF
(my standard), is 953850.
S_3.6
vi /usr/vice/etc/ThisCell
Install
get afsinstall.sh
set the cell name to delphion.com.
Direction get afsclient-42.tar
vi /usr/vice/etc/CellServDB
quit
s
replace all existing lines with
chmod +x afsinstall.sh
>delphion.com # Thomson-Delphion
./afsinstall.sh
10.224.88.241 #afs1.delphion.com
afsclient-42.tar
To start AFS, service afs start
rm afsinstall.sh
To allow AFS-authenticated logins,
afsclient-42.tar
ftp's, etc,
cd /etc/pam.d
cp -p system-auth system-auth.Before.AFS
cp -p --reply=yes /tmp/afs/system-auth
system-auth
rm -rf /tmp/afs
@sys
rs_aix42
(fs
sysname)
i386_linux24
/local ->
Delphion- /afs/d/@sys/local
Standard /u -> /afs/d/u
/usr/afsws ->
Links
/afs/d/@sys/usr/afsws
Devices
AIX
RedHat Linux
Install Devices
cfgmgr -v
Remove Device
rmdev -l
Device Drivers
lscfg
CPU
List Terminal
Diagnostics
diag
lspci
pnpdump
Whole Disk
/dev/hdisk#
/dev/sda
/dev/MAKEDEV
cat /proc/cpuinfo
CDROM
/dev/cd0
/dev/cdrom
cdrfs
iso9660
/dev/rst0
Non-rewinding Tape
Drive
/dev/rmt0.1
/dev/nrst0
Floppy Drive
/dev/rfd0
/dev/fd0
{ c 9 0}
{ c 9 128 }