Shortcut keys for operations in Linux

Source: Internet
Author: User
Shortcut key for operations in Linux System 1. after logging on to the Virtual Console, press Alt + F2 to see the login: prompt, which is the second Virtual Console. Generally, the newly installed Linux has four virtual consoles, which can be accessed through Alt + F1 to Alt + F4. When the Virtual Console is most useful... shortcut key for Linux operations 1. after logging on to the Virtual Console, press the "Alt + F2" key to see the "login:" prompt. this 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. after the copy and paste character interface (whether Slackware or RedHat) is installed, a program named gpm is automatically run at each startup. after the program runs, you can copy and paste the program with the 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. enter some directories and 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" the color directory list can be displayed as in Slackware when bash is started next time. the meanings of different colors are as follows: blue → directory green → executable file red → compressed file light blue → link file gray → other files 5. command file path: If you type some commands (such as find, shutdown, mount, and startx), do you want to know which Directory the files are stored in? Run the command "whereis", for example, # whereis startx 6. to find a file, add some parameters to the find command to find the file, for example, # find/usr-name XF86Setup-print. find the file XF86Setup in/usr. 7. after deleting useless core files, sometimes a file named core is generated. This file is usually large and useless and can be deleted to free up space. 8. in Linux, after you type the mc command at a prompt, you will see a very similar interface with Norton Commander. In fact, the functions are very similar or even more powerful, for example, you can directly operate the files in the .tar.gz package (a bit like ZipMagic ). 9. when running the X-Window program in the background to execute an X-Window program, do not forget to add an & sign (for example, # netscape &) to it. otherwise, you cannot enter commands in the terminal window before exiting the program. 10. forced exit of X-Window sometimes causes program errors in X-Window, so that the mouse and keyboard do not work, so don't worry, in Linux, there will be almost no vicious crashes like in Win 9x. you only need to press Ctrl + Alt + BackSpace to return to the character interface. Command Mode x // delete the character where the cursor is located. r // modify the character where the cursor is located. R // enter the retrieval and replacement status. S // delete the character of the cursor and enter the input mode. S // delete the column where the cursor is located and enter the input mode. U // restores the deleted text. U // restores all changes in the column where the cursor is located. Ctrl + a: move the cursor to the beginning of the line. Ctrl + e: Move the cursor to the end of the row. Ctrl + l: Clear the terminal. This shortcut works the same as typing clear in the command line. Ctrl + d: log out and close from the Shell prompt. you do not need to enter exit when using this shortcut key. Ctrl + u: clear the current row. If you work under the command line, use this shortcut to clear the characters from the cursor to the beginning of the line. Ctrl + Alt + Fn: switch the screen. Ctrl + Alt + one of the function keys will display a new screen. According to the default settings, from F1 to F6 is the Shell prompt screen. Ctrl + K: delete all characters from the cursor to the end of the line. Up and down arrows: displays the command history. Bash stores the list of commands you have previously typed. This list is called the Command History table. Speace + B: Call a word forward. Mouse Center key: Paste the highlighted text. Use the left mouse button to highlight the text, point the cursor to the place where you want to paste the text, and click the middle key to paste the text. In the two-key mouse system, if you set the mouse to simulate the third key, you can click both the left and right keys of the mouse to paste it. Tab: command line auto-completion. Ctrl + Alt + Delete: Shutdown and reboot. this method is used only when the shutdown fails. Linux Union Collection command mode CTRL-] jump to the label corresponding to the current word; CTRL-G displays the current file information and the current cursor position information; CTRL-W CTRL-^ separates a window to edit the previous file (# represents the file); CTRL-W CTRL-C closes the current window; CTRL-T returns to the position before the call tag, corresponds to CTRL;★Insert mode CTRL-C exit insert mode, back to command mode, equivalent to Esc; CTRL-[same CTRL-C; CTRL-D reduce indent; CTRL-T increase indent; CTRL-W remove the entire word before the cursor;★In command line mode, the CTRL-C exits the insert mode and returns to the command mode, which is equivalent to Esc; Note: in command line mode in the old vi, Esc is used to execute commands rather than exit, but in vim in command line mode, Esc has been set as a bounce key; the CTRL-D shows all possible options; the CTRL-R CTRL-W gets the word at the cursor to the command line; k, h, l, left, right, j, down, ^, move to the first non-space character of the row w, move a word forward, use a symbol or punctuation as a word processing W, move a word forward, do not treat a symbol or punctuation as a word. B. move a word backward. Use a symbol or punctuation as a word. B. move a word backward, do not treat symbols or punctuation as words 0 to the beginning of the line $ to the end of the line gg to the top G to the end of the page line number + G jump to the specified line Ctrl + g query the current row information and the current file information fx jump to x of the line to the right (x can be any character) fx jumps to x on the left (x can be any character). tx and fx are the same. The difference is that before x, Tx and Fx are the same. Then CTRL + U scroll up half screen CTRL + D scroll down half screen LINUX desktop tips 1. this is often the case: select a large segment of content on the browser page, right-click the pop-up menu and select copy to kword. openoffice or other word processing software documents are often not pasted. if the selected content is shorter, why? Is there any solution? Atfa: My solution is to paste it into vim and then process it. it seems that vim can accept a very long paste. 2. how can I create a custom icon shortcut for an application on the KDE menu and desktop? Linux blind: first, let's talk about how to create a shortcut that allows custom icons for an application in the KDE menu: 1. right-click to start, in the displayed dialog box, select "panel-menu editor ". 2. in the pop-up menu editor, click "new menu item" and enter the corresponding name. 3. click the browse icon next to the command item to find the program for creating a shortcut. 4. click the browse icon next to the working path to find the folder where the program is located. 5. click the big icon at the end of the working path to match the shortcut with your favorite icon. 6. in the current key column, you can set a shortcut key for the program! 7. click application and open the Start menu to see if the shortcut you just created is displayed in the Start menu! Next, let's talk about how to create a shortcut that allows custom icons for an application on the KDE desktop: The first method: move the shortcut created in the menu to the desktop with the left button, after you release the mouse, select "Copy to here" in the pop-up dialog box to create a shortcut on the desktop. To modify the shortcut icon, right-click the shortcut and select "feature" in the pop-up dialog box! (You can also use the preceding method to create other shortcuts on the desktop.) Method 2: Right-click the blank area of the desktop and select "New-application link" in the displayed dialog box ". In the displayed window, click "execute" and click the browse key next to the command bar to find the corresponding program. Click "regular" to name, change the icon, and click "OK". a shortcut is created on the desktop! 3. how to create shortcuts on GNOME desktop? Dalin: Right-click the desktop and select "new luncher" (spelling error ?) ", Or right-click the File Manager and drag the execution file to the desktop. select" create link. clear the browsing history of Konqueror jhcc: open Konqueror and display the navigation panel. The third item is history. The right-click menu has the history clearing function. 5. how to change the Desktop Manager (KDE and GNOME )? Llc: If you use the character interface startx to enter the Desktop Manager, run switchdesk KDE or switchdesk GNOME and then startx to access different desktop managers. if you use a graphical logon manager, it is easier to select the desktop manager you want to log on to in session (sessions), and then you can log on 6. in the built-in input method miniChinput of rh8.0, how does one switch the half/full-width punctuation mark? Llc: press CTRL +. switch 7. clear the address records in the drop-down list box in the konqueror address bar. llc: convert ~ /. Delete the kde/share/config/konq_history file to clear the records in the address bar drop-down box. of course, if you like, you can edit it and select which are retained and not retained (on rh8.0 kde3) 8. how do I remove the name of the execution program history menu at the top of the K menu ??? Llc: "control center"-"perception"-"panel"-"menu"-"Max" quick start "project count", set to 0, so that you cannot see the historical menu items, alternatively, edit ~ /. Kde/share/config/kickerrc, find a line like the following: recent1_stat = 2 1035439257 System Settings/gnome-gdmsetup.desktop, 9 1037074821 System this line is to record the history of those running programs, the preceding number indicates the number of running times. if you do not like it, you can delete all the numbers following the equal signs of this line. after cancellation, the number will disappear. (Of course, you can choose to retain what you want) 9. add a quick start icon shuxian to the bottom panel of the red hatlinux desktop: for example, to add a quick start icon for the star translator, you can directly drag the execution file of the interstellar translation King to the task bar. in the displayed dialog box, you can enter the information, enter the name, prompt, and other information you want, and then select a nice icon, click OK. A quick start icon is ready! 10. how can I change the KDE splash startup screen? Llc: replace the image 11 in/usr/share/apps/ksplash. tips for MDK: (1) use mozilla to open the html file Control Center-file browsing-text-html-embedded-Display files in the new viewer (2) use Xkill to kill the xwindows window: application-system monitoring tool. we recommend that you drag a shortcut to the desktop. this is a very useful tool. RH also has (3) double-click to open the file: configuration -- KDE-peripherals -- mouse (4) select a part of content from anywhere with the mouse, in the other receiving character window, press the key, try it, this applies to any linux system (5) alt + f2 can run programs, similar to running 12 in windows. konqueror flash plug-in llc: konqueror does not support 5.0 flash plug-ins well. it is recommended that you use the 6.0flash plug-in on this site. konqueror can be easily loaded, install the software in the mozilla installation directory. Then, in the konqueror plug-in scan path settings, point the plug-in path to the mozilla plug-in Directory, scan again to find the new plug-in, and then re-run konqueror to support flash 13. how does one exit from the X window interface to the character interface? Conclusion: (1) Ctrl + Alt + F1 ~ F6 can be instantly switched to the six Linux consoles, Ctrl + Alt + F7 and then return xWindows (2) If you use startx to access xwin, you can also press ctrl + alt + backspace to forcibly exit xwin (3) and run init 3, or exit the graphical interface to enter character mode 14. what is gmtms? What is KDM? How to switch? How to set it? Llc: modifying/etc/inittab is the most reliable. for details, refer to: 15. how can I enable the system to automatically run some mini programs when starting the KDE or GNOME window? llc: ~ /. Create a shortcut or link under the kde/Autostart folder. This folder serves as the "start" folder of win98. if it is GNOME, you should add a session in the last tag column (the name is forgotten) in "other"-"preference"-"Sessions, enter the command to run the program (rh8, similar to other systems) 16. how to customize K menus? Llc: Right-click the K menu icon, choose menuedit, or run kmenuedit17. in rh8, how does kde rename the "Recycle bin" and change its icon? Llc: you can right-click the icon and modify the name ~ /Desktop/waste paper basket /. directory-related name segments (such as [zh_CN]) to achieve (practice has proved that UTF-8 encoding is not required, the original post error) 18. summary of the hidden files in the directory in XWINDOW: Use the ls-a command in the terminal, if it is kde, in konqueror's "View" menu, select "Show hidden files". if gnome is displayed, see 19. what if the KDE desktop icon disappears? Pk: one of the common scenarios where KDE fails but does not crash is that the desktop (including wallpaper and desktop icons) disappears and core files are generated in the user directory. in many cases, the user has to quit X and then start again to solve this problem. In fact, you only need to simply run/usr/bin/kdesktop without parameters in terminal (for example, konsole, rxvt, or even cxterm not recommended) to restore the desktop. In addition, the program corresponding to the taskbar is/usr/bin/kicker. If you accidentally use xkill to kill the taskbar, you can run kicker without parameters to retrieve it. In fact, kde starts kdesktop, starts kicker, and starts 20 gadgets such as ktip and klipper. how to capture screen images in rh8: Press the printscreen Key in gnome, run ksnapshot in kde, or download a screenshot capture software by yourself, for example, the common shortcut for captura21gnome ctl + B bookmarks ctl + d copy and paste ctl + f search shift + ctl + f Web search ctl + I display attribute page ctl + h switch to homectl + u to the upper level ctl + n create new folder ctl + o open ctl + w close window shift + ctl + w close all windows ctl + = enlarge ctl +-zoom in ctl + [return ctl +] forward ctl + t put it in the garbage bin ctl + r refresh Ctrl + Alt + d display desktop (carton friend added) 22KDE common shortcut key ctl + tab switch work desktop alt + tab switch application alt + f1 open application menu alt + f2 open command window alt + f3 Open Window menu alt + f4 close window f1 help f2 search f3 on the page search next space select/cancel selected file ctl + n open file manager find open webpage ctl + a select all files and directories in the current directory ctl + t open a terminal ctl + w in the current directory close the window ctl + f search file ctl + c copy ctl + v paste Ctrl + Alt + d display desktop

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.