11 cool Linux terminal commands Daquan

  
        Today, I will share 11 cool Linux terminal commands compiled by Linux for ten years. Through this article, I will show you a series of Linux commands, tools and techniques. I hope that someone will tell you at the beginning. I did this, not to hold me on my way to growth.
1. Command Line Daily Shortcuts
The following shortcuts are very useful and can greatly improve your work efficiency:
CTRL + U -Cut the content before the cursor
CTRL + K - Cut the cursor to the end of the line
CTRL + Y - Paste
CTRL + E - Move the cursor to the end of the line
CTRL + A - Move the cursor to the beginning of the line
ALT + F - Jump to the next Space
ALT + B - Jump back to the previous space
ALT + Backspace - Delete the previous word
CTRL + W - Cut the word after the cursor
Shift + Insert - Paste the text into the terminal < Br> Then, in order to make the above content easier to understand, look at the following line of commands.
sudo apt-get intall programname As you can see, there is a spelling error in the command. In order to perform normally, you need to replace "ldall" with "install".
Imagine that the cursor is now at the end of the line, we have a lot of ways to return her to the word install and replace it.
I can press ALT+B twice so the cursor will be in the following position (here the position of the cursor is used).
sudo apt-get^intall programname Now you can press the arrow key twice and insert “s” into the install.
If you want to copy the text from your browser to the terminal, you can use the shortcut "shift + insert".
2. SUDO !!
If you don't know this command yet, I think you should thank me very much, because if you don't know, then every time you enter a long string of commands, you will see "permission denied" After that, it will be painful.
sudo !!
How to use sudo !!? is very simple. Imagine that you just entered the following command:
apt-get install ranger will definitely appear "Permission denied" unless you have logged in to a sufficiently high-privileged account.
sudo !! will run the previous command in the form of sudo. So the previous command becomes like this:
sudo apt-get install ranger If you don't know what sudo is, poke here.
Copyright © Windows knowledge All Rights Reserved