Pig command line shortcut

Source: Internet
Author: User
Delete Ctrl + D Delete the character at the cursor location is equivalent to X in vim or dlctrl + H Delete the character before the cursor location is equivalent to HX in vim or dhctrl + k Delete All characters behind the cursor is equivalent in vim, d SHIFT + $ Ctrl + u deletes all characters before the cursor, which is equivalent to d SHIFT + ^ Ctrl + W in Vim. deleting the word before the cursor is equivalent to restoring the previous time in VIM dbctrl + y Ctrl + U. CTRL +? Undo the previous input Alt + R undo the previous action Alt + D Delete the cursor position after the word move Ctrl + a move the cursor to the beginning of the command line is equivalent to the vim SHIFT + ^ Ctrl + E moving the cursor to the end of the command line is equivalent to shifting + $ Ctrl + F in Vim. Moving the cursor backward by a character is equivalent to moving the lctrl + B cursor forward by a character in Vim, which is equivalent to hctrl + left arrow key cursor in Vim. move to the beginning of the previous word Ctrl + Right-click the direction key move the cursor to the end of the next word Ctrl + x jump between the character of the last cursor and the character of the current cursor Alt + F jump to the cursor position word tail replacement CTRL + T Replace the current character of the cursor with the previous character Alt + t swap the current position of the cursor word and the previous word Alt + u Replace the word at the current position of the cursor into uppercase Alt + L change the word at the current position of the cursor to lowercase Alt + C, and change the first letter of the word at the current position of the cursor to uppercase ^ oldstr ^ Newstr replace string history command in the previous command edit Ctrl + P return the last input command character Ctrl + r input word search history command Alt + P input character search history similar to the character command Alt +> return to the last command to execute other Ctrl + S lock terminal Ctrl + q unlock terminal Ctrl + l clear screen equivalent to command unzip TRL + C start another line Ctrl + I like tab Jian complete full function CTRL + O repeated command Alt + number key operations are almost complete :), this is what I personally found out at. Some people mentioned above may not seem to be so full of comrades who often deal with command lines in Linux, the command line editing skills have greatly improved the working performance. You can also look at them with many functions, there may be some unlisted items. Please add them as follows. I will give some typical examples to demonstrate the convenience. [copy to clipboard] [-] Code: # C + l clear the screen first [emai L protected]: ~> Str1 str2 str3 # Enter three words to find that the first word must be capitalized and jumped to the beginning by C + A. Press A + C [email protected]: ~> Str1 str2 str3 # Now the word looks like this, and it is found that the second word should be in uppercase (such a command is really dead :() well, if your current cursor is in the second word, A + u will change the word directly, if not, press "C + A" and then "C + F" to the second word, and then "A + U". The result is OK, as shown below. [Email protected]: ~> Str1 str2 str3 # What should I do if I want to change it? My position is already in the last word. It's easy to hold down a + 2 + B. Haha, I jumped to the second word, and then I came back with a + L, the second word. all in lower case, another typical example [url] http://bbs.chinaunix.net/viewthread.php? Tid = 842595 [/url] Title: How do I change the first letter of each word in a data file to uppercase? Haha, this is hard for us, because we already have a + C [email protected]: ~> Welcome to chinaunix! # Isn't it case-sensitive? Press C + A and then a + 3 + C to see the effect [email protected]: ~> Welcome to chinaunix! # Good: It's easy. Let's try to replace [email protected]: ~> Welcome to chinaunix! # The three words C + A should jump to the beginning and then to the second word (because A + T can only be replaced with the previous word, so it is not allowed to press a + T in the first word) press and hold a + T [email protected]: ~> To welcome chinaunix! # Now it's like this. If I use a + 2 + T, then another [email protected]: ~> Chinaunix! Welcome to # [email protected]: ~> Ls/tmp/# Look at some of the following file1 file2 file3 ...... [email protected]: ~> ^ Ls ^ CD # now, if you want to enter the directory again, you can simply run the "jian" command to replace it. If you use this command for a long time, you can save a lot time CD/tmp/[email protected]: /tmp> # enter the tmp directory

 

Pig command line shortcut

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.