Linux simple tricks and how to get into the root user

Source: Internet
Author: User


1, using the Shell Tab key Auto-complete
tab can be completed automatically in the Linux command line input. In Linux
Using the TAB key in the command line can greatly improve the input efficiency
2. Using the Shell's history
The Shell records the history of the user's execution of the command, and we typically use the command to centralize and reuse it over a short period of time.
So when you need to use a command that you've just used, you don't need to take the time to enter it again, just press and hold down the keyboard
Arrow keys, you can realize the page up and down, turn out the command you just used, directly enter the execution. It's like a phone.
Call logs are the same as quick callback.

3, the meaning of some symbols in the Linux command line:
. Represents the current directory
.. Represents the previous level directory, the parent directory of the current directory
-Represents the previous directory, which directory CD I just came from
~ Represents the current user's host directory
/Represents the root directory
$ normal User's command line prompt
#root用户的命令行提示符
* Universal Match character

Host Directory : The so-called host directory, is the operating system for the current user designed to store files, work of the default directory. such as the "My Documents" directory in Windows, is the host directory that Windows has designed for us.
Each user in Linux has its own host directory, which is/home/username/for the average user, and for the root user, in/root.

4 How to enter the root user when you start installing Ubunto

(1) Su passwd root

(2) Please enter your password

(3) Prompt to confirm password

(4) What you see at this point is the beginning.

Linux simple tricks and how to get into the root user

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.