Sunday, August 15, 2010

Some useful notes for Linux



TaskFile / Command
Startup script/etc/rc.d/rc
Kernel/boot/vmlinuz
Kernel Parameterssysctl -a
Reconfigure the kernelcd /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  
mkinitrd /boot/initrd-2.2.16.img 2.2.16  
vi /etc/lilo.conf  
lilo
List moduleslsmod
Load moduleinsmod
Unload modulermmod
Initialize systemnetconf
Physical RAMfree -m
Kernel Bitsgetconf LONG_BIT
Crash utilitylcrash
Trace System Callsstrace
Machine modeluname -m
OS Leveluname -r
Run Levelrunlevel
Hardware Informationdmidecode
Timezone Management/etc/sysconfig/clock
NTP Daemon/etc/ntp.conf 
/etc/rc.d/init.d/xntpd