Article Title: Common shortcut keys for operations in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I 've been learning Linux for a long time. I 'd better summarize some of the things I 've learned;
1. Use the virtual console
After logging on, press the "Alt + F2" key to see the "login:" prompt, which is the second virtual console. Generally, the newly installed Linux has four virtual consoles, which can be accessed from "Alt + F1" to "Alt + F4. The most useful time in the virtual console is that when a program fails to lock the input, you can switch to another virtual console. log on to the console and run the kill command to kill the faulty process.
2. copy and paste
After the character interface (Slackware or RedHat) is installed, a program named gpm is automatically run at each startup. After the program runs, you can copy and paste it with your mouse. The specific method is to press and hold the left mouse button to drag the text to be copied to the white, then the white area has been copied, right-click the copied content and paste it at the cursor position.
In X-Window, the copy operation is the same as in the character interface. If you use a three-Key mouse, press and paste it. If it is a two-Key mouse, press the left and right keys at the same time (the condition is that Emulate 3 Button must be selected in the mouse setting when XF86 is configured ).
3. quick access to some Directories
Type cd ~ You can access your home directory. Type cd-to enter the previous directory.
4. display the color directory list under RedHat
Open/etc/bashrc and add the following line:
Alias ls = "ls -- color ″
When bash is started next time, the colored directory list will be displayed as in Slackware. The meanings of different colors are as follows:
Blue → directory
Green → executable files
Red → compressed file
Light blue → link file
Gray → other files
5. command file path
When you type some commands (such as find, shutdown, mount, and startx), do you want to know which directory the files are stored in? You can use the command "whereis", for example:
# Whereis startx
6. Search for files
The find command must add some parameters to check the file, for example:
# Find/usr-name XF86Setup-print
Find the XF86Setup file in/usr.
[1] [2] [3] [4] [5] [6] Next page