Ultra-Practical Linux/unix shortcut key rollup (development, Management) (1) (Turn)
The most important platform for development and system management in a Linux/unix environment is the shell environment. The shell has a lot of very useful shortcut keys, good grasp of these shortcuts, you will be greatly improved efficiency.
AD:
"51CTO Technical Data" recently found in the work, many colleagues, especially our PHP developers, the basic will not use Linux/unix shortcuts, seriously affect the efficiency, so special writing this article, each usage I will be detailed comments.
All of the following commands are valid under the Linux/unix shell, where bash is the main. If there are discrepancies, take your own server as the subject. This article refers to the Linux mainly refers to the Rhel/centos,unix refers to the FreeBSD, which is the most frequently used version of the server.
Ctrl + a switches to command line start
This operation is the same as the result of home implementation, but home is not available in some UNIX environments and can use this combination; Vim under Linux is also valid, and in many Windows file editors, this is also valid.
Ctrl + e switch to the end of the command line
This operation is the same as the end implementation, but it can be used in some UNIX environments, and it works with Vim in Linux, and it works in many Windows file editors as well.
Ctrl + L clears the screen and the effect is equal to clear
Ctrl + u clear the contents before the clipping cursor
This command is useful and effective in nslookup. I sometimes see a co-worker with a word in the delete shell command, very crash. In fact, it can be done with a CTRL + U.
Ctrl + K-cut to clear the contents after the cursor
Ctrl + y paste the character you just deleted
This command is strong, the deletion of the character may be a few strings, but most likely a line of commands.
Ctrl + R Find in the history command (this is very handy, the input keyword will call up the previous command)
I strongly recommend this command, sometimes history relatively long, want to find a more complex, directly here, the shell will automatically find and call, very convenient
Ctrl + C abort command
Ctrl + D exit shell,logout
Ctrl + Z to run in the background
However, a process that runs from CTRL + Z to the background terminates after the current user exits, so it's better to use the Nohup command, because the nohup command is the function that the process continues to run after the user exits, and many scripts and commands are now required to remain in effect when Root exits.
The following is not too familiar, I used more ways to operate:
!! repeat execution of the last command
History Displays all the numbered + history commands you have executed. This can be matched! Edit to execute so-and-so command
↑ (ctrl+p) Show Previous command
↓ (CTRL + N) displays the next command
!$ Displays a recent parameter of the system
Finally this is more useful, for example, I use Cat/etc/sysconfig/network-scripts/ifconfig-eth0 first, then I want to use vim to edit. The general practice is to use ↑ to display the last command, and then move to the top of the command with home, delete the cat, and then enter the VIM command. In fact, you can use Vim!$ instead.
Development and management of the words, master the above usage, basically work is very efficient; In the end, you will inadvertently find that fingertips, many complex instructions you will be easy to handle.
Ultra-Practical Linux/unix shortcut key rollup (development, Management) (2) (turn)
The most important platform for development and system management in a Linux/unix environment is the shell environment. The shell has a lot of very useful shortcut keys, good grasp of these shortcuts, you will be greatly improved efficiency.
AD:
Appendix: Shortcuts for desktop environments under Linux
The following instructions are valid under the Linux/unix desktop Environment (GNOME), such as if there is a discrepancy on your own server:
Alt + F1 similar to the win key under Windows, open the Application menu in GNOME (applications)
Alt + F2 similar to Windows Win + R key, run application in Gnome
Ctrl + Alt + D similar to the win + D key combination under Windows, display desktop
Ctrl + Alt + L lock desktop and start screen saver
ALT + TAB with ALT + TAB keys under Windows to toggle between different program windows
printscreen full Screen capture map
Alt + printscreen Current Window Scratch chart
Ctrl + Alt +→/← Switch between different workstations
Ctrl + Alt + Shift +→/← move the current window to a different workbench
CTRL+ALT+SHIFT+FN terminal n or analog terminal n (n and N for number 1-6)
Ctrl+alt+shift+f7 return to desktop
ctrl+alt+shift+f8 Unknown (terminal or analog terminal)
window action shortcut keys
Alt + F4 Close window
Alt + F5 Cancel Maximize window (Restore window original size)
Alt + F7 Move window (note: Invalid when window is maximized)
Alt + F8 Change window size (Note: Invalid in window maximized state)
Alt + F9 minimized window
Alt + F10 Maximize window
Alt + space Open the Control menu of the window (click on the menu that appears in the top left corner of the window)
common shortcut keys in applications
The following does not apply to all programs. Can be compared with the shortcut keys under Windows:
CTRL + N create a new window
ctrl+x Shearing
Ctrl + C copy
Ctrl + V paste
Ctrl+z undo Previous action
ctrl+shift+z Redo a step that has just been undone
Ctrl+s Save
File Browser
ctrl+h Show hidden files (toggle key)
ctrl+t New label
Ctrl+page up previous label
Ctrl+page down next label
alt+n Switch to Nth tab (n is number)