Linux is the first day of school

Open the virtual machine in the line that the cursor is displayed localhost login, here is to enter a user name, then there will be Passworld, you need to enter the password set before (when entering the password will not be displayed on the screen, first I thought the keyboard is broken ), losers can start using a password.


  1. After the text cursor will be shown on the map, in front of the root is the current user's account name, followed by the @ localhost is the host name, followed by ~ means "the current directory", the final surface is the # prompt (the default root prompt is #, the average user prompt for the $)
  2. Inputting a command to pay attention to the case when, Linux environment is case-sensitive, such as input and date Date will get different results, as shown belowHere Insert Picture Description
  3. Then the operation of some basic command
    1, shows the current language use: echo $ LANG
    2, display the current date and time: date
    input format different display in different ways Here Insert Picture Description
    3, show calendar: cal
    basic grammar cal to cal [[month] year] (month and if a mistake, then this will prompt the whole very good) as shown below:
    Here Insert Picture Description
    4, the Tab key (I know now is that we can use the Find command, such as looking at ca beginning with the command to enter ca, and even press the Tab key twice) Here Insert Picture Description
    press the Tab key twice also can view this system the number of command can make use of the current account
    5, Ctrl-c to terminate the current key to run the program
    6, synchronize data written to disk: sync
  4. Common shutdown command: shutdown (shutdown can choose to shutdown time, shutdown mode, the specific syntax used to query the man shutdown, I found out a little too dense to see not understand, or read it)
  5. Restart, Shutdown: reboot, halt, poweroff (which I have not tried, usually with init 0 shutdown)
Published an original article · won praise 0 · Views 24

Guess you like

Origin blog.csdn.net/zaniliaRui/article/details/104062927