Cheatsheet: Difference between revisions

Line 500:
 
= Linux =
 
== Linux Booting ==
 
*BIOS
*MBR
*GRUB
*Kernel
*Init
0 – halt
1 – Single user mode
2 – Multiuser, without NFS
3 – Full multiuser mode
4 – unused
5 – X11
6 – reboot
*Runlevel programs
 
== Manually Boot using Grub ==
 
*Locate where the vmlinuz and initrd.* files are located:
grub> ls
(hd0) (hd0,msdos5) (hd1) (hd1,msdos0)
 
*Boot the system:
grub> linux (hd1,msdos1)/install/vmlinuz root=/dev/sdb1
grub> initrd (hd1,msdos1)/install/initrd.gz
grub> boot
 
== File system layout ==
 
/ – The Root Directory
/bin – Essential command binaries
/boot – Boot loader files
/dev – Device Files
/etc – Configuration Files
/home – Home Directory
/lib – Essential Libraries
/lost+found – Recovering Files
/media – Removable Media Devices
/mnt – Temporarily mounted filesystems
/opt – Optional software packages
/proc – Kernel & Process Information
/root – Root Home Directory
/sbin – System binaries
/selinux – Security-Enhanced Linux
/srv – Service Data
/sys – virtual filesystem
/tmp – Temporary files
/usr – binaries, documentation, source code, libraries
/var – Variable Files
 
== Commands ==