In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Nano is a character terminal text editor, a bit like the editor program under DOS. It is much simpler than vi/vim and is more suitable for beginners of Linux. The default editor for some Linux distributions is nano.
Nano command can open the specified file for editing, by default it will automatically break the line, that is, in a line of input is too long to automatically split into several lines, but in this way to deal with some files may cause problems, such as Linux system configuration files, automatic line breaking can only be written on one line of content broken into multiple lines, may cause system failure. So, if you want to avoid this, add the-w option.
Grammar
Nano [options] [[+ rows, columns] filename]...
Option
-h, -?-- help displays this information + line Columns start with the number of columns and rows indicated-A-- smarthome enables intelligent HOME key-- B-- backup stores backups of existing files-C-- directory where backupdir= stores unique backup files-- D-- boldtext converts entered tabs to blank-F-multibuffer enables multiple file buffers-H-historylog records and reads search / replace History string-I-- ignorercfiles do not refer to nanorc file-K-- rebindkeypad fix numeric keypad key confusion-L-- nonewlines do not add newline to the end of the file-N-- noconvert do not convert from DOS/Mac format-O-- morespace edit use one more line-Q-quotestr= reference represents string-R-restricted restriction mode-S-smooth scrolls by line instead of half screen-T-tabsize= Set the custom table width to # columns-U-quickblank status line flash fast-V-version display version information and leave-W-wordbounds to more correctly detect word boundaries-Y-syntax= syntax definition for highlighting-c-- const continues to display cursor position-d-- rebinddelete corrects backspace key / delete key confusion problem-I-autoindent automatically indents new lines-k-cut cut from cursor To the end of the line-- l-- nofollow do not follow the symbolic link Instead, override-m-mouse enable mouse function-o-operatingdir= set operation directory-p-- preserve preserves XON (^ Q) and XOFF (^ S) keys-Q-- quiet silently ignores startup problems, such as rc file error-r-fill= sets line width to # columns-s-speller= enables alternative spell checker-t-tempfile automatically saves when leaving Do not prompt-u-- undo allows GM to undo [experimental features]-v-- view view (read-only) mode-w-- nowrap do not auto-wrap-x-- nohelp do not display auxiliary zone-z-- suspend enable pause function-$--softwrap enable soft line wrap-a,-b,-e-mai f,-g,-j (ignore, for pico compatibility)
Usage
Cursor control
Move the cursor: use to move with the arrow keys. Select text: hold down the left mouse button and drag to.
Copy, cut, and paste
Copy a whole line: Alt+6 cut and paste a whole line: Ctrl+K
Paste: Ctrl+U
If you need to copy / cut multiple lines or part of a line, first move the cursor to the beginning of the text you want to copy / cut and paste, press Ctrl+6 (or Alt+A) to mark it, and then move the cursor to the end of the text to be copied / clipped. At this point, the selected text will be highlighted, copied with Alt+6 and cut and pasted by Ctrl+K. To cancel during text selection, simply press Ctrl+6 again.
Search
Press Ctrl+W, then enter the keyword you want to search, and press enter to confirm. This will navigate to the first matching text, and then you can use Alt+W to locate the next matching text.
Turn the page
Ctrl+Y to previous page Ctrl+V to next page
Save
Use Ctrl+O to save your changes
Quit
Press Ctrl+X
If you make changes to the file, you will be asked if you need to save the changes. Enter Y to confirm saving, enter N to not save, press Ctrl+C to cancel to return. If you enter Y, the next step will ask you to enter the file name you want to save. If you do not need to change the file name, enter directly; if you want to save to another name (that is, save as), enter the new name and confirm it. You can also use Ctrl+C to cancel the return at this time.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.