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 ./build/system system kmupdate /stand/build
cd /usr/src/linux make mrproper make menuconfig make dep make clean make bzimage make install
List modules
kmadmin −s
lsmod
modinfo
Load module
kmadmin −L
insmod
modload
Unload module
kmadmin −U
rmmod
modunload
Reconfigure the kernel
Initialize system
install_assist
set_parms initial
vi /etc/system
make modules make modules_install
sys−unconfig
4
UNIXguide.net ( AIX, HP−UX, LINUX & SOLARIS ) Physical RAM bootinfo −r
grep −i Physical /var/adm/syslog/syslog.log
Kernel Bits
getconf WORD_BIT
getconf KERNEL_BITS
isainfo −kv
Crash utility
crash
crashutil
crash
Machine model
uname −m bootinfo −m
model uname −m
uname −m
uname −imp
OS Level
oslevel
uname −r
uname −r
uname −r
Run Level
who −r
who −r
runlevel
who −r
Core dump files
/var/adm/ras
/var/adm/crash
Boot single user
Key on service mode/F4 Boot from CD/Tape Select Maintenance Limited function Shell
ISL>hpux −iS
cat /proc/meminfo
prtconf
/var/crash/`uname −n`
linux S
ok boot −s
Maintenance mode
ISL>hpux −lm
ok boot −as
Interrupt Key
control−B
Stop−A
Return to console
co
ok go
Software
AIX
HP−UX
LINUX
SOLARIS
Install Software
installp −a
swinstall
rpm −i package
pkgadd
Uninstall software
installp −u
swremove
rpm −e package
pkgrm
List installed software
lslpp −L all
swlist
rpm −qa
pkginfo
Verify installed software
lppchk −v
swlist −l fileset −a state
List all files
lslpp −f fileset
swlist −l file fileset
List installed patches
instfix −i
swlist −l patch what /stand/vmunix
Package owner
lslpp −w path
swlist −l file | grep path
rpm −−query −−file file
pkgchk −l −p path
SW Directory
/usr/lpp
/var/adm/sw/
/var/lib/rpm
/var/sadm
Devices
Devices
AIX
/dev
pkginfo −i pkginfo −p rpm −ql package
patchadd −p
HP−UX
/dev
pkgchk −l package
LINUX
SOLARIS
/dev
/devices
/dev/MAKEDEV
drvconfig devlinks disks tapes ports
Install devices for attached peripherals
cfgmgr −v
insf −e
Remove device
rmdev −l
rmsf
rem_drv
Device drivers
lscfg
lsdev
prtconf −D
CPU
lsdev −Cc processor
ioscan −fnC processor
psrinfo −v
List Terminal
lsdev −Cc tty
ioscan −fnC tty
pmadm −l /usr/platform/`uname −m`/ sbin/prtdiag ok test−all /opt/SUNWvts/bin/sunvts
Diagnostics
diag
stm
Whole Disk
/dev/hdisk#
/dev/dsk/c#t#d0
/dev/sda
/dev/c#t#d0s2
CDROM
/dev/cd0
/dev/dsk/c#t2d0
/dev/cdrom
/dev/dsk/c#t6d0s2
5
UNIXguide.net ( AIX, HP−UX, LINUX & SOLARIS ) CDROM file type
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.