Although many people are using Microsoft Windows, some people are still focusing on the Linux operating system. This article explains some knowledge about the people who are learning the Linux operating system at the beginning, I hope this article will help those Linux users.
1. Terminal copy and paste
When using the gnome terminal, it is not convenient to copy and paste characters in windows. In fact, it is convenient to click and paste in the middle of the mouse. Double-click a sentence and select a row. Click paste.
Do not press Ctrl + C, leading to the exit of the command line program being executed.
2. scrolling
In character mode, use shift + pageup/pagedown to view historical records on a scrolling screen.
3. History rollback of gnome Terminal
You can set the rollback value to around 4000 on the rolling tab of the configuration file of the gnome terminal. Rows 4000 are enough to view the scrolling screen of several operations.
4. Windows Remote Desktop
Use Windows Remote Desktop in Linux, and use tsclient + rdesktop
5. How to Use the parameters of the previous command
On the gnome terminal and character interface, you can use alt +. To obtain the last parameter of the last command. Multiple times will become the last parameter of the previous command.
For example, back up logs to/var/log/xxx/yyy/zzz/myfile.
Cp/var/log/myfile/var/log/xxx/yyy/zzz/myfile.1
The xxx/yyy/zzz directory does not exist. After creating these directories and executing the command, you can use alt + to save on input.
6. How can I give up the commands that have been lost for half a day?
Shift + alt + # You can annotate the command to retrieve it in the command history. If ctrl + C is used, no record exists.
7. How to move a long string of command cursors in the command line
Ctrl + a move to the beginning of the line, ctrl + e move to the end of the line. Ctrl + left/right, move a word
8. Edit the command line
Modify the command
Ctrl + k delete all parameters from the cursor to the end
9. Get the parameters of the previous command
Alt + n and then alt +. where n is the first parameter of the previous command. Starts from the command and starts counting at 0. Alt + 0, alt +. Is the command itself, and so on.
10. History and Automatic completion
! + The command is the recently executed "command + parameter"
The up and down arrow keys can scroll History commands
History can view previous commands
The tab in the command line can be automatically completed. I believe everyone knows this.
What should I do if I cannot remember the command operation shortcut?
You can use info readline and bind-p to view the information.
M indicates alt, meaning Meta
C Indicates Ctrl.
E Indicates ESC.
For example, \ C-c Indicates ctrl + c.
\ M-. Indicates Alt +.
Some keyboards do not have Meta, so you can use esc instead of Meta.
I hope you will have some knowledge about the Linux operating system.
- Details about how to use Windows partitions in Linux
- Complete Linux localization and easily apply Linux
- Linux technology is getting better than NEC
- Diverse Linux desktops
- Red Hat announced that Enterprise Linux 6 will no longer support Cert