In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Vi editor 1, view text file contents cat, heat, more, less, tail 2, file editing tools 3, line editing tools grep, awk, sed (three Musketeers) 4, full screen editing tools nano, vi, vim 5, note: if I just want to see the contents of the file Try not to use vi or nano if you want to see the first part of the file, use head, and use tail at the end. If the content of the file is small, you can use cat if there is a lot of content in the file (incomplete display on one screen). Can more or less vi:visual interface visual interface 6, difference: vim has syntax coloring vim can record the location of the last exit (automatically enter the last line after opening the file) vi open the file to enter the first line 2, Vi is a modeling tool. Vi opens files in three working modes: you can only see Cannot enter content input mode: you can enter or delete content last line mode in the file: you can execute a command file Note: after opening the file The default is the editing mode. Mode conversion Edit Mode-> input Mode I: insert content before cursor > Edit Mode ESC Summary: please insert the information in the lower left corner to indicate that you are in input mode: it means that there is nothing in the last line mode. Indicates that you are in edit mode 4, general operation 1, open file vi file: open the file, while positioning the cursor to the first vi + n file of the first line, and position the cursor to the first vi + file of the specified line to open the file. At the same time, position the cursor to 2, close the file in edit mode, close the shift+zz save close (shortcut key) and close the last line mode Q exit the file-only exit the unmodified file Q! Do not save forced exit, if the file has been modified and has not been saved (do not want to save), you must use Q! W save the file-save w / path/to/file to achieve the effect of saving as wq save and exit Note: if the purpose of opening the file with vi is to see the contents of the file, then be sure to use Q! This is to prevent miscorrection. 3. Move the cursor (edit mode) n [h] left n [j] under n [k] on n [l] right n [w] to the first part of the next word n [b] to the first part of the next word 4. Inline jump (edit mode) 0 jumps to the beginning of the absolute line (before the space) ^ jumps to the relative beginning of the line (jumps to the first non-empty character in front of the line) $jumps to the end of the line (absolute end of the line) 5, interline jump n G: jump to the bottom n line G: jump directly to the last line 6, Jump between lines-Last line mode enter a number in the last line mode can jump to line N: 1 to 1: 100 to 100: $to the last line 7, screen flip operation-edit mode ctrl+f flip up one screen ctrl+b flip down one screen ctrl+d flip down half screen ctrl+u flip up half screen 8, Delete character [N] x: delete a specified number of characters in this society. You either stand out or you're out!
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.