In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the commonly used shortcut keys on the Linux command line". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the shortcuts commonly used on the Linux command line.
Commonly used ctrl+ key around: jump between words ctrl+a: jump to the beginning of the line ctrl+e: skip to the end of the page Ctrl+u: delete the text in front of the current cursor (and cut function) ctrl+k: delete the text behind the current cursor (and cut function) Ctrl+L: clear the screen operation Ctrl+y: paste Ctrl+u or ctrl+k cut content Ctrl+w: delete the character Alt-d of the word in front of the cursor: start from the cursor position and delete the word to the right. Delete at the end of the line.
Description
Ctrl-k: hold down the Ctrl key, then press the k key; Alt-k: hold down the Alt key, then press the k key; M-k: click the Esc key first, and then press the k key.
Move the cursor
Ctrl-a: move to the beginning of the line Ctrl-e: move to the end of the line Ctrl-b: move back (left) move one character Ctrl-f: move back (right) move one character Alt-b: move back (left) move one word Alt-f: move one word back (right) move one word Ctrl-xx: move Mmurb between the end of the command line and the cursor: move one word back (left) move one word back (right)
Editing command
Ctrl-h: delete the characters to the left of the cursor Ctrl-d: delete the characters to the right of the cursor (note: when the current command line does not have any characters, the system or terminal will be logged out) Ctrl-w: delete words to the left starting from the cursor position. Delete Alt-d: start with the cursor and delete the word to the right. Delete M-d at the end of the line: start with the cursor and delete the word until the end of the word. Ctrl-k: starts with the cursor and deletes all characters on the right until the end of the line. Ctrl-u: start with the cursor and delete all characters on the left until the line begins. Ctrl-y: paste the previously deleted content behind the cursor. Ctrl -? t: swap the position of the cursor and the first two characters. Alt +. Use the last argument of the previous command Ctrl-_: reverts to the previous status. Undo the operation.
Bang (!) Command
!!: execute the previous order. ^ Foo ^ bar: replace foo with bar in the previous command and execute it. ! wget: executes the most recent command that starts with wget. ! wget:p: only the most recent commands that start with wget are printed, not executed. ! $: the last argument of the previous command, with? Alt -.? And $_? The same. ! *: all parameters of the previous command! *: P: print all the parameters of the previous command, that is, the contents of?! *. ^ abc: delete the abc from the previous command. ^ Foo ^ bar: replace the foo in the previous command with bar ^ Foo ^ bar ^: replace the foo in the previous command with Barrack Murn: execute the first n commands, execute the last command:?!-1, execute the first five commands in the format:?!-5
Find History command
Ctrl-p: displays the last history command of the current command Ctrl-n: displays the next history command of the current command Ctrl-r: search history command, enter key executes matching command as input displays a matching command in the history command; ESC key displays on the command line instead of executing matching command. Ctrl-g: exit from the historical search mode (Ctrl-r).
Control command
Ctrl-l: clear the screen, and then redisplay the contents of the line on which the current cursor is located at the top. Ctrl-o: execute the current command and select the previous command. Ctrl-s: block screen output Ctrl-Q: allow screen output Ctrl-c: terminate command Ctrl-z: suspend command
Repeat the operation action
M-number of operations Action: specify the number of operations, repeat the specified operation. At this point, I believe that everyone on the "Linux command line commonly used shortcut keys have a deeper understanding, might as well come to the actual operation of it!" Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.