分类:
2010-09-16 01:58:42
MISC | AIX | FreeBSD | HP-UX | LINUX(RedHat) | SOLARIS | Tru64 |
Startup script | /etc/rc | /etc/rc | /sbin/rc | /etc/rc.d/rc | /etc/init.d | /sbin/init.d |
Kernel | /usr/lib/boot/unix_up | /kernel | /stand/vmunix | /boot/vmlinuz | /kernel/genunix | /vmunix |
Kernel Parameters | lsattr -E -l sys0 | sysctl -a | sysdef kmtune kmsystem |
sysctl -a | sysdef -i | sysconfig dxkerneltuner |
Reconfigure the kernel | chdev -l sys0 -a |
cd /sys/i386/conf vi KERNEL config KERNEL cd ../../compile/KERNEL make depend make make install |
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 |
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 |
vi /etc/system reboot |
doconfig |
List modules | genkex | kldstat | kmadmin -s | lsmod | modinfo | |
Load module | kldload | kmadmin -L | insmod | modload | ||
Unload module | kldunload | kmadmin -U | rmmod | modunload | ||
Initialize system | install_assist | /stand/sysinstall | set_parms initial | netconf | sys-unconfig | netsetup |
Physical RAM | bootinfo -r | sysctl hw.physmem | grep -i Physical /var/adm/syslog/syslog.log | free | prtconf | uerf | grep memory |
Kernel Bits | bootinfo -K | getconf KERNEL_BITS | getconf LONG_BIT | isainfo -kv | 64 | |
Crash utility | crash | crash | adb | crash | kdbx | |
Trace System Calls | syscalls | truss | tusc | strace | truss | |
Machine model | uname -m bootinfo -m |
uname -m | model uname -m |
uname -m | uname -imp | uname -p |
OS Level | oslevel | uname -r | uname -r | uname -r | uname -r | sizer -v |
Run Level | who -r | who -r | runlevel | who -r | who -r | |
Core dump files | /var/adm/ras | /var/adm/crash | /var/crash/`uname -n` | |||
Boot single user | Key on service mode/F4 Boot from CD/Tape Select Maintenance Limited function Shell |
ok boot -s | >boot Interact with IPL ? Y ISL>hpux -iS |
{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 |
Maintenance mode | ok boot -as | >boot Interact with IPL ? Y ISL>hpux -lm |
ok boot -as | |||
Interrupt Key | control-B | Stop-A | control-P | |||
Return to console | co | ok go | ||||
Timezone Management | /etc/environment /etc/profile |
/etc/localtime | /etc/TIMEZONE | /etc/sysconfig/clock | /etc/TIMEZONE /etc/default/init |
/etc/svid3_tz timezone |
NTP Daemon | /etc/ntp.conf startsrc -s xntpd |
/etc/rc.conf {xntpd_enable="YES"} /etc/rc.network |
/etc/rc.config.d/netdaemons /sbin/init.d/xntpd |
/etc/ntp.conf /etc/rc.d/init.d/xntpd |
/etc/inet/ntp.conf /etc/init.d/xntpd |
rcmgr set XNTPD_CONF YES /sbin/init.d/xntpd |
Software | AIX | HP-UX | LINUX(RedHat) | SOLARIS | Tru64 | |
Install Software | installp -a | pkg_add | swinstall | rpm -i package | pkgadd | setld -l |
Uninstall software | installp -u | pkg_delete | swremove | rpm -e package | pkgrm | setld -d |
List installed software | lslpp -L all | pkg_info -a | swlist | rpm -qa | pkginfo | setld -i |
Verify installed software | lppchk -v | swlist -l fileset -a state | rpm -V package | pkginfo -i pkginfo -p |
setld -v | |
List all files | lslpp -f fileset | pkg_info -L package | swlist -l file fileset | rpm -ql package | pkgchk -l package | setld -i package |
List installed patches | instfix -i | swlist -l patch what /stand/vmunix |
patchadd -p | dupatch -track -type patch | ||
Package owner | lslpp -w path | swlist -l file | grep path | rpm -qf file | pkgchk -l -p path | ||
SW Directory | /usr/lpp | /var/db/pkg | /var/adm/sw/ | /var/lib/rpm | /var/sadm | /var/adm/smlogs |
chinaunix网友2010-09-16 15:28:00
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com