Ubuntu Kylin Common Summary 1

Source: Internet
Author: User

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

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.