Centos crack password and run level

  

1. Nothing to teach, teach you to look at the system version first (fatly remember the first time to help customers see the version I see, do not tell you very bad) #cat /etc/Issue

You can also use more #more /etc/issue


2. As for the system 32/64 you want to see, you can use the following command #uname - a/-i/-r These can be, personally like #uname -r simple and refreshing (previously mentioned, it is a review)


3. Well know the system Version, some people love new and don't like old and like to upgrade the system. Always stay fresh (this is not a good habit) especially when you manage your server. I have seen the upgrade of the server system to destroy my domain. No zuo no die said that I want to upgrade to see here # yum update

The long wait (depending on your speed) yum source to see the source of the Chinese character you also know something, equivalent to the warehouse,

Introduction of two yum commands# yum list

View and list all installed and uninstalled packages list I don't know what you think. I thought of man ls list=ls so I understand why ! #yum grouplist

Listing all installed and uninstalled packages commonly used yum grouplist| & rdquo; Development & ldquo; -i Anyway, it works well. Find what you want by limiting! ! ! (I installed Chinese..) So the limit is Chinese characters

4. Know yum to see packages that are not installed and installed, installed and not installed. Try not to install a desktop to try a desktop! (Command as follows) #yum groupinstall “Desktop” -y#yum groupinstall “X Window” -y After launching init5 or startx to start the desktop<install Chinese to this friend remember (LANG=en) No comparison 尴尬>


5. Speak more. . . . . . . . . . . . . . . . . . . . .

There are always customers who need to help reset the password for various reasons! Our background system I saw these words, I am crazy!! (I work at IDC) especially the windows server. Because I hate looking for drivers to add Raid drivers under PE! ! Of course, Centos I still prefer a single user to get what you want! ! How to enter a single user! Look at my (A———E) A. Shut down the system and wait for the restart, etc. When he appears 5 times, press any key to edit it (see picture)


B. You You can reach such a place (look here!!)


This is the GRUB menu interface (in which you can see some information about your system, linux version; kernel Information) In fact, people who came here for the first time here will be somewhat uncomfortable. What should I do next? Below the frame, Barabara has a bunch of English. I read the page up and down to select the OS you want to start. Press e to enter the edit. a/c I don't discuss it. I am confused! ! C. Firmly press "&equo;e" on the keyboard to enter the following interface (you are the same as me)


<Talk about my story: just come to the computer room to deal with linux failure I am very embarrassed, the university also learned, but it is not a serious matter PS: I am a university network engineering (when I was equipped with a router switch is still quite good) > D. Computer room old bird said: "The longest Click e to add a 1 at the end, b to restart & rdquo; After entering the following figure: move the cursor to the kernel configuration item line, which is the longest line! ! ! ! Press e to edit again (as shown below)


Add a 1 to the space or add a single

(Why ask me what to add 1) Run level) 1 means single-user mode plus 1 after the entry save b button to restart it! ! ! ! ! ! ! ! ! I will not demonstrate the picture of entering a single user. E. I want to change the password (root) password directly passwd. Change the normal user's passwd+ username. You can restart it after

reboot can be init 6 or < Br>

OK (A——–E) is the whole process you can try.


The following is a description of Linux 7 running levels (0–6)


0 means shutting down (init 0) shutdown 1 I have already said After the single-user mode, there are 2345. Let me talk about it one by one. 2 is the 3 level 3 without network NFS service. It is the default command line mode of your system. 4 This custom 5 is the graphical interface with X window or GUI. Mode (that is, I used yum groupinstall -y to install the graphics suite mode)

6 is to restart the server (init 6)

Well, expand the view to see the Linux runlevel command #runlevel

Copyright © Windows knowledge All Rights Reserved