- Ubuntu Desktop window into the Shell window: Ctrl + ALT + F2~f6; Exit Shell window: Ctrl + ALT + F7; Enter UI Command window from UI, Ctrl + Alt +t
- Shell Instruction Basic Format
-command name [options] < parameter 1>< parameter 2>
-For example: detailed listing of all files in directory/home
[[email protected] hostname]# LS-AL/HOME-->UBUNTU Real statement: [Email protected]:~$ ls-al/home
[[email protected] hostname]#: a command prompt that usually ends with a ' # ' symbol indicates that the user of the shell is the root user
[Login name @ hostname]$: a command prompt that usually ends with a ' $ ' sign indicates that the user of the shell is a user other than root
' # ' and ' $ ' are shell prompts that can be customized
' ls ' is an order
'-al ' is an option
'/home ' is a parameter
Separated by a space
-Automatic completion and history: When you enter a shell command, a file name, or a few letters at the beginning of a directory name, if you press the TAB key, the shell automatically queries for matching items, automatically completing them, and improving programming efficiency.
The shell can automatically memorize the input commands, press the UP and DOWN ARROW keys to select the commands you have entered.
3. Online Help command
-man [[email protected] hostname] #man fdisk displays an explanation of the command fdisk is a shell command
-info [[email protected] hostname] #info fdisk is also a description of the shell instructions, and the relationship to man is two sets, but there is an intersection
-help [[email protected] hostname] #fdisk How the command works by--help query command options
4. Small experiments
-Use the shell command "LS/" to view the contents of the root directory
-sudo Apt-get * * *
-ctri + C exits the current process
-echo
Usage: echo [short options] ... [String] ... Or: The Echo long option echoes the STRING back to standard output.
-n do not trailing line breaks
-e enable escape function to interpret backslashes
-e disables the escape function that interprets backslashes (default)
--HELP Display this help message and exit
--version display version information and exit
If-e is available, the following sequence is recognized:
\ \ counter Slash
\a Ring Ring
\b Backspace
\c no longer produces new output
\e Escape character
\f Page Change
\ n New Line
\ r Enter
\ t Horizontal tab
\v Vertical Tab
\0nnn bytes are expressed in octal NNN (1 to 3 bits)
\xhh bytes in hexadecimal number HH (1 to 2 bits)
http://blog.csdn.net/xukai871105/article/details/35834703
Shell directive (i)