Linux command-line commands

Source: Internet
Author: User
Tags clear screen

1 Linux Command line edit shortcut keys:2 3 history displays a list of command histories4 5↑ (Ctrl +p) Display the previous command6 7↓ (Ctrl +N) Display the next command8 9!Num executes the command history list num CommandTen  One!!executes the previous command A  -!?string?executes the most recent command with string strings -  theCtrl+r then enter a number of characters, start searching up for the command that contains the character, and continue pressing CTRL +R, search for the previous matching command -  -Ctrl+s and CTRL +r Similar, just forward retrieval -  +alt+<History list First item -  +Alt+>last item in history list A  atCTRL+F cursor moves forward one character, equivalent to -  -CTRL+B cursor moves backward one character, quite with <- -  -ALT +F cursor moves forward one word -  inALT +b cursor moves backward one word -  toLs!$ execute Command ls, and the parameter of one of the above commands is its parameter +  -CTRL +a moves to the beginning of the current line the  *CTRL +e moves to the end of the current line $ Panax Notoginsengesc+B moves to the beginning of the current word -  theesc+F moves to the end of the current word +  ACTRL +L Clear Screen the  +CTRL +u cuts all characters before the cursor in the command line (excluding itself) -  $CTRL +K cut all characters (including itself) after the cursor in the command line $  -CTRL +D Delete the character at the cursor location -  theCTRL +h Delete the previous character at the cursor location - WuyiCTRL +y Paste the character you just deleted the  -CTRL +W cut a word before the cursor (with a space, punctuation, etc. as a delimiter) Wu  -ALT +d The words after the cut cursor About  $esc+W Delete the character that precedes the cursor to the end of its word (delimited by spaces, punctuation, and so on) -  -CTRL +T reverses the position of the cursor and its previous character, and moves the cursor to the next character -  AALT +T swaps the position of current and previous words +  theALT +u convert the current word to uppercase -  $ALT +L CONVERT the current word to lowercase the  theALT +C Change the current word to capitalize the first character the  theCTRL + V inserts special characters, such as ctrl+v+tab Join TAB key -  inesc+T reverses the position of the cursor and its adjacent words the  theCTRL +C Delete entire row About  theCTRL +(x u) press CTRL and press X and u again to undo the action you just made the  theCTRL +s hangs the current shell +  -CTRL +Q re-enable the suspended shell the Bayi[Ctrl] + [Alt] + [Backspace] =Kill your current X session. Kill the graphical desktop session and return you to the login screen. If the normal exit step does not work, you can use this method.  the  the[Ctrl] + [Alt] + [Delete] =shut down and re-boot Red Hat Linux. Close your current session and reboot the OS. Use this method only if the normal shutdown step does not work.  -  -[Ctrl] + [Alt] + [Fn] = Toggle 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, [F7] is a graphical screen.  the  the[Alt] + [Tab] = switch tasks in a graphical desktop environment. If you have more than one application open at the same time, you can use [ALT] +[Tab] to switch between open tasks and applications.  the  the[Ctrl] + [A] =move the cursor to the beginning of the line. It can be used in most text editors and in the URL fields of Mozilla.  -  the[Ctrl] + [d] =Log Off (and close) from the shell prompt. With this shortcut, you don't have to type exit or logout.  the  the[Ctrl] + [E] =move the cursor to the end of the line. It can be used in most text editors and Mozilla's URL fields. 94  the[Ctrl] + [l] =clear the terminal. This shortcut works the same as typing clear at the command line.  the  the[Ctrl] + =clears the current line. If you are working under a terminal, use this shortcut to clear the characters from the cursor to the beginning of the line. 98  About[middle mouse button] =pastes 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. Click the middle mouse button to paste it. In a two-button mouse system, if you configure the mouse to simulate the third button, you can click the left and right mouse buttons to perform the paste.  - 101[Tab] =command line Auto-complete. You can use this command when using shell hints. Type the first few characters of a command or file name, and then press the [Tab] key, which automatically complements the command or displays all commands that match the characters you type. 102 103[Up] and [down] arrows =Displays the command history. When you use the shell hint, press the [up] or [down] arrows to view the history of the command you typed in the current directory. When you see the command you want to use, press the [Enter] key. 104  theClear =clear the shell prompt screen. Typing it at the command line clears all the data displayed in this shell prompt screen. 106 107Exit =Log off. Type it in the shell prompt to log off the current user or root user account. 108 109History = Show Command Histories. Type it in the shell prompt to display the number of numbers you typed before +a command. To display a shorter command history, type a number in the empty space after you have entered the historical F. For example: History -.  the 111reset =refreshes the shell prompt screen. If the character is not clear or garbled, typing this command at the shell prompt refreshes the screen.  the 113# CTRLU: Erases the previous part of a row of cursors.  the  the# CTRLH: Erase one character from the front of the cursor.  the 117# CTRLD: Terminate the input. (Exit the shell if you are using the shell). 118 119# CTRLC: Terminates the program that is currently running.  - 121# CTRLZ: Pause the program. 122 123&"')124  the# CTRLS: Stop the output to the screen. 126 127# CTRLQ: Re-activates the output to the screen.  - 129 the default shell, ' Bash ', has historical editing and tab completion.  the 131# up-Arrow: Start the history command search.  the 133# CTRLR: Start the Incremental history command search, and follow the keywords to find out which commands you have used. 134 135 # TAB: Complete the input file name to the command line. 136 137# CTRLV tab: Enter tab instead of extending the command line. 138 139# Ctrl + P-Previous Command $ 141# Ctrl + N-Next Command142 143# CTRLU: Erases the previous part of a row of cursors. 144 145# Ctrl + Y-paste the previous Ctrl +the U-class command removes the characters that are pasted is not undone Ah! 146 147 The following application may be slightly advanced a little bit148 149# !! -Previous Command Max 151#!-n-countdown nth History Command the 153#!-N:P-Print Previous command (not executed)154 155# !?string? -A recent article containing "string"the command156 157#!-n:gs/str1/str2/-Replace the str1 of the last nth command with STR2 and execute (if not G, replace only the first one)158 159 some other useful Linux command-line key combinations.  the 161ctrl-alt-Del: Suspend or restart the system, these three Linux command line keys under Linux can be easily modified to shutdown operation, which is very convenient for single-user friends162 163# Ctrl + L-Clear Screen164 165# Ctrl + A-cursor moves to the beginning of the line166 167# Ctrl + E-move cursor to end of line168 169# Ctrl + W-clear the cursor before a word the 171# Ctrl + K-clears the character of the cursor to the end of the line172 173# Ctrl + T-swap the first two characters of the cursor174 175# CTRL + V-input control word such as CTRL + V., will enter ^M176 177# Ctrl + F-move the cursor back one character178 179# Ctrl + B-move cursor forward one character the 181# Ctrl + H-Delete a character before the cursor182 183# n++f-after the cursor moves n words, n is 1 can be omitted184 185# n++b-cursor forward n words, n is 1 can be omitted186 187# left-click-and-Drag Mouse: Select and copy to Clipboard. 188 189 # Click middle mouse button: Paste using the contents of the Clipboard.  the 191# Meta-key (Emacs terminology) is traditionally used in Left-alt-key

Linux command-line commands

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.