CLI BASH command
Shell is divided into CLI and GUI two kinds
CLI:command Line Interface
The GUI :
BASH
Prompt
# Super administrator
Su ( switch user )
$ Normal user
The general format of the command
command
Options
parameter
Use Tab key to simplify the command input
Auto-complete command
Auto-complete file name
Unable to auto-complete parameter
E.g
$ Unam <>
$uname
$ls Downl<tab>
$ls Downloads
Clean Clear the current screen
Bash will save the history of input commands can be up and down keys or the history to see the command
Use the up and down buttons to check the command before
Using the history command to see history
Streamline operations through history
! ! Repeat the command
! Character before to repeat a "character" at the beginning of the command
! ? abc before repeating contain abc order
! -n repeat n previous commands that command
Search through the command history
By Ctrl + r to search command in history
Argument before a command Recall
Esc , according to press after . Key
BASH Shell supports the following wildcards:
* Match 0 or more
? Matches any single character
[0-9] to match a range of numbers
[abc] matches any character list
[^ abc] matches the list of unexpected characters
Switch User
In the CLI by su command to switch user
Su - switch to the root user and use a new operating environment
Sudo administrator user identity to run command
Displays the current user information
Id
Change the current user password
Passwd
Bash job management
Running in the background process
After adding a command &
Pause a program
By Ctrl + Z or a transmission signal I7
Management background job
Jobs ( currently running in the background job )
BG (a control process to continue running in the background)
Fg (running in the foreground)