Pages

Thursday, April 21, 2011

Useful Linux Tips


Task
File / Command
Startup script
/etc/rc.d/rc
Kernel
/boot/vmlinuz
Kernel Parameters
sysctl -a
Reconfigure the kernel
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 
mkinitrd /boot/initrd-2.2.16.img 2.2.16 
vi /etc/lilo.conf 
lilo
List modules
lsmod
Load module
insmod
Unload module
rmmod
Initialize system
netconf
Physical RAM
free -m
Kernel Bits
getconf LONG_BIT
Crash utility
lcrash
Trace System Calls
strace
Machine model
uname -m
OS Level
uname -r
Run Level
runlevel
Hardware Information
dmidecode
Timezone Management
/etc/sysconfig/clock
NTP Daemon
/etc/ntp.conf
/etc/rc.d/init.d/xntpd