Small white learn linux--command line basic operations

Source: Internet
Author: User

After the installation of Ubuntu, into the system, presented in front of the Ubuntu interface, and Windows is not much worse. The general operating system contains the GUI and CLI. GUI is what we see now, is also commonly used by Windows directly with drag and drop, click and other operations on the system command, CLI Use command directly to the system operation.

Right-click on the open terminal to enter our command line interface. Here, you open a new command-line interface (terminal) for each open terminal, and each terminal is run separately.

Here is the most basic Operation command:

The command consists of three parts: 1 command 2 option 3 parameter. Any command followed by A & symbol indicates that the command is run in the background.

The prompt is divided into two types: $ for normal user #表示root用户, maximum permissions

CTRL + C: Force the current command to terminate

Clear: Clears the current page

The TAB key automatically complements the command, the file name, but not the full parameters. As long as you can uniquely identify the command, click tab to complete.    Double-click tab to find all commands that begin with the specified character. History: all the historical commands.    : Repeat the previous command (as on the arrow keys) character: Repeat the previous command that starts with ' character ' !num: Executes the command according to the sequence number of the history record    !? ABC: Repeat the command containing ABC before !-n: Repeating the last nth command

ctrl+r: When you press CTRL+R, enter any characters you have entered before, and you can find the corresponding command ESC after pressing. Parameters that can be used to invoke the previous commandWildcard: * Match 0 or more characters? Match any one of the characters [0-9] match a number range [ABC] match any character in the list [^ABC] match list character switch User: Su-user name: Switch to ' username ' under User, without username, then switch to root user. (Can not add-, try to add, switch to a new terminal) sudo: Run command ID with Administrator privileges: Display current User information passwd: Modify the current user password

Manage background jobs: Ctrl + Z: Pause a program jobs: View background Program bg+ program run Number: Let a program continue running in the background fg+ program run Number: Let a program run in the foreground    

 

Small white learn linux--command line basic operations

Related Article

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.