Cat/etc/issue
Cat/etc/redhat-release rpm-qa| grep release
View version
Uname-a-i-r View kernel version
Yum Grouplist
lang=en
Yum grouplist This command to list all installed and not installed packages
Reboot;init 6 Shutdown-r now off
Single-run mode change password
passwd Change Password
Restart linux,3 seconds, press ENTER.
If you have a grub password, you need to press P first, enter the password before you can do the following
Press E, select the second row, and then press e
add single or number 1 or letter s on the last side
Press ENTER first and then press B
This will successfully enter single-user mode, we can change the root password
Enter the original system, change the password, restore the file
-------------------------------------------------------
0-halt (do not set Initdefault to this) <== shutdown system, cannot be the default level
1-single User mode <== Single-user mode, similar to safe mode, for fault maintenance
2-multiuser, without NFS (the same as 3, if you don't have networking) <== similar to 3, but no networking capability
3-full multiuser mode <== Full-featured multi-user mode
4-unused <== reserved not used
5-x11 <== Full-featured multi-user mode with graphical interface
6-reboot (do not set Initdefault to this) <== reboot, cannot be the default level, otherwise there will be supernatural time
S start Service K turn off service;
INIT SET environment variable NETWORK SERVICE partition, etc. initialization
/etc/inittab Modifying the Run level
Power-->bios->boot driver-->mbr (grub+partion table+55aa) (kerner+kernel image--> static drive-->init->/ ETC/INITTAB3->/etc/rc.d/rc3.d/-->/etc/rc.d/rc.local-->6*tty (terminal)
Yum Install-y Lrzsz
Mylinux Cookbook No.2 2015/3/11