1, the Common Linux Terminal command shortcut keys
Ctrl+u: Cutting the content before the cursor
Ctrl+k: Cut cursor to end of line
Ctrl+y: Pasting
Ctrl+e: Move cursor to end of line
CTRL + A: Move the cursor to the beginning
Alt+f: Skip to next space
Alt+b: Jumps back to the previous space
Alt+backspace: Delete the previous word
Ctrl+w: Cut the previous word of the cursor
Shift+insert: Pasting text inside the terminal
2, sudo command
under ordinary users, to install software, insufficient permissions, need to first switch to the root user, more trouble. In front of the installation directly add sudo, is the user root installation, more efficient
such as:
Apt-get install Ranger
= sudo apt-get install Ranger
Span style= "Background-color: #ff6600" > 3, let the program convert between foreground and background
ctrl+z : puts the command executing in the foreground into the background and pauses
bg : a command that pauses in the background changes to continue
If there are multiple commands in the background, You can use BG%jobnumber to bring up the selected command,%jobnumber is the ordinal (not PID) of the command that is being executed in the background through the jobs command
& : Placed behind a command, Put this command in the background to perform
jobs : To see how many commands are currently running in the background
fg : The command in the background is moved to the foreground to continue running
If there are multiple commands in the background, You can use FG%jobnumber to bring up the selected command,%jobnumber is the ordinal (not PID) of the command that is being executed in the background through the jobs command
4,
sudo apt install yum //install yum< /span>
5, ubuntukylin Common shortcut key summary
6, Su and Su-the difference:
Http://www.ha97.com/4001.html
Su simply switches the root identity, but the shell environment is still a normal user's shell, and Su-even the user and shell environment switch to root identity. The PATH environment variable error is not reported by the command not found only if the shell environment is switched.
After the SU switch to the root user, PWD, found that the working directory is still the normal user's working directory, and after the Su-command switch, the working directory becomes the working directory of root.
Ubuntu Kylin Common Summary 1