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