[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-687604-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-687604-en":130,"doc-similar-687604":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","gnu-nano-small-and-friendly-text-editor","GNU nano - small and friendly text editor","","Manual for the GNU nano text editor, describing its purpose and core capabilities. Highlights include interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to line and column, feature toggles, file locking, backup files, and internationalization support. Explains the project goal for compatibility with Pico and provides guidance for invoking nano, including standard input usage and a synopsis of command formats. Includes detailed command-line options such as backup handling, tab and whitespace behavior, multibuffer loading, locking, history logging, restricted mode, scrolling, and version display.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/gnu-nano-small-and-friendly-text-editor/687604/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/gnu-nano-small-and-friendly-text-editor/687604.png","ImageObject",300,407,{"name":42,"@type":43},"dhado","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What extra features does nano provide beyond basic text editing?","Question",{"text":63,"@type":64},"Nano includes interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to line and column, feature toggles, file locking, backup files, and internationalization support.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do you invoke nano with a specific file or read from standard input?",{"text":68,"@type":64},"The usual command is nano [FILE]. If a dash is given instead of a filename, nano reads from standard input, allowing piped command output to be edited.",{"name":70,"@type":61,"acceptedAnswer":71},"What does nano’s restricted mode do?",{"text":72,"@type":64},"Restricted mode prevents reading/writing files not specified on the command line, disallows nanorc and history files, blocks suspending and spell checking, prevents saving/adding under different names, and disables backup files.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},687604,1794084263,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},5909893218464,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","GNU nano  \na small and friendly text editor version 2.9.8  \nChris Allegretta  \nThis manual documents the GNU nano editor.  \nThis manual is part of the GNU nano distribution.  \nCopyright 􀀍c 1999-2009, 2014-2017 Free Software Foundation, Inc.  \nThis document is dual-licensed. You may distribute and/or modify it under the terms of either of the following licenses:  \n* The GNU General Public License, as published by the Free Software Foundation, version 3 or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/) .  \n* The GNU Free Documentation License, as published by the Free Software Foundation, version 1.2 or (at your option) any later version, with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You should have received a copy of the GNU Free Documentation License along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/) .  \nYou may contact the author by e-mail: [chrisa@asty.org](chrisa@asty.org)  \n1  \n1 Introduction  \nGNU nano is a small and friendly text editor. Besides basic text editing, nano offers many extra features, such as an interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to-lineand-column-number, feature toggles, file locking, backup files, and internationalization support.  \nThe original goal for nano was to be a complete bug-for-bug emulation of Pico. But currently the goal is to be as compatible as possible while offering a superset of Pico’s functionality. See Chapter 9 [Pico Compatibility], page 30, for more details on how nano and Pico differ.  \nPlease report bugs via [https://savannah.gnu.org/bugs/?group=nano](https://savannah.gnu.org/bugs/?group=nano).  \n2  \n2 Invoking  \nThe usual way to invoke nano is: nano [FILE]  \nBut it is also possible to specify one or more options (see the next section), and to edit several files in a row. Additionally, the cursor can be put on a specific line of a file by adding the line number with a plus sign before the filename, and even in a specific column by adding it with a comma. So amore complete command synopsis is:  \nnano [OPTION]   [[+LINE[,COLUMN] |+,COLUMN] FILE]    \nNormally, however, you set your preferred options in a nanorc file (see Chapter 7 [Nanorc Files], page 15) . And when using set positionlog (making nano remember the cursor position when you close a file), you will rarely need to specify a line number.  \nAs a special case: when instead of a filename a dash is given, nano will read data from standard input. This means you can pipe the output of a command straight into a buffer, and then edit it.  \n3  \n3 Command-line Options  \nnano takes the following options from the command line:  \n-A  \n--smarthome  \nMake the Home key smarter. When Home is pressed anywhere but at the very beginning of non-whitespace characters on aline, the cursor will jump to that beginning (either forwards or backwards) . If the cursor is already at that position, it will jump to the true beginning of the line.  \n-B  \n--backup When saving a file, back up the previous version of it, using the current filename suffixed with a tilde ( ~ ) .  \n-C directory  \n--backupdir=directory  \nMake and keep not just one backup file, but make and keep a uniquely numbered one every time a file is saved — when backups are enabled. The uniquely numbered files are stored in the specified directory.  \n-D  \n--boldtext  \nUse bold text instead of reverse video text.  \n-E  \n--tabstospaces  \nConvert typed tabs to spaces.  \n-F  \n--multibuffer  \nRead a file into a new buffer by default.  \n-G  \n--locking  \nEnable vim-style file locking when editing files.  \n-H  \n--historylog  \nSave the last hundred search strings and replacement strings and executed commands, so they can be easily reused in later sessions.  \n-I  \n--ignorercfiles  \nDon’t look at the system’s nanorc","cbCaiv0fGja4SZTz","https://ap.wps.com/l/cbCaiv0fGja4SZTz","pdf",186362,37,"English","# Introduction\n# Invoking\n# Command-line Options\n## Command-line options list","[{\"question\":\"What extra features does nano provide beyond basic text editing?\",\"answer\":\"Nano includes interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to line and column, feature toggles, file locking, backup files, and internationalization support.\"},{\"question\":\"How do you invoke nano with a specific file or read from standard input?\",\"answer\":\"The usual command is nano [FILE]. If a dash is given instead of a filename, nano reads from standard input, allowing piped command output to be edited.\"},{\"question\":\"What does nano’s restricted mode do?\",\"answer\":\"Restricted mode prevents reading/writing files not specified on the command line, disallows nanorc and history files, blocks suspending and spell checking, prevents saving/adding under different names, and disables backup files.\"}]","GNU nano - small and friendly text editor | PDF",93,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b27bf3ee4fe2e9e4130832c4fa52f38b.webp",983,1299,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5b968ca701d5e67595348ddd5c64cb2b.webp",982,1297,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e113a253c9953d552ba7b766e4a4d680.webp",981,1296,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/bb2d2886dd8ac6040c82b48bd364f658.webp",980,1295,{"list":163,"token":11},[164,170,176,182,188,194,200,207,213,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":55,"category_name":29,"create_tm":169},687605,"GNU nano Manual - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262808/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=HUmkDKMHLbQe5JhgbEsDqRfgZwU%3D","gnu-nano-manual-introduction",1794084264,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":105,"category_name":29,"create_tm":175},689176,"The Linux Command Line - 2nd Edition - A Complete Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001529949/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=0YkjvlV8KrbJldkYWKNsELz6TG8%3D","the-linux-command-line-2nd-edition-a-complete-introduction",1794098405,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":105,"category_name":29,"create_tm":181},692314,"CS 116 Course Specific Style Guide - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003205286/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=gKYNtSgaMHyJDRtc%2FOoOHs17XBk%3D","cs-116-course-specific-style-guide-document",1794193120,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":30,"category_name":29,"create_tm":187},689140,"Vim Reference Guide - Learn Vim Editing and Navigation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001521890/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=DZT4KRZK9IlUyD1AMDYdw5JThGc%3D","vim-reference-guide-learn-vim-editing-and-navigation",1794097583,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":33,"category_name":29,"create_tm":193},682217,"A Python Style Guide - Draft","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998448576/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=%2BFIh7gXlOvE%2B50dYtx0y8DUnJA4%3D","a-python-style-guide-draft",1793963006,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":33,"category_name":29,"create_tm":199},700988,"Java Code Conventions - 1997-09-12 - Copyright and code style guidelines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012045653/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=8rFaU6A4I4CHM1b%2BQP2jxp2NSHw%3D","java-code-conventions-1997-09-12-copyright-and-code-style-guidelines",1794522632,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},688007,"AutoCAD Keyboard Shortcuts - 2012","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001266203/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=NgFLJekxTIvIdJCZ91AdFitl9zk%3D","autocad-keyboard-shortcuts-2012",13,1794085741,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":30,"category_name":29,"create_tm":212},682216,"Python Code Style Guide - Introduction - Format and use of White Space","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999427657/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=DjQpABpz0qNHKZ7AlVo8YuwgQ1A%3D","python-code-style-guide-introduction-format-and-use-of-white-space",1793963005,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":29,"create_tm":219},688005,"AutoCAD and Its Applications Basics 2015 - Shortcut Keys - Key Combinations and Function Keys","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001266197/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=YQzZ2Cv3ZSIhVG2nKMVoXYww9l4%3D","autocad-and-its-applications-basics-2015-shortcut-keys-key-combinations-and-function-keys",11,1794085736,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":110,"category_name":29,"create_tm":225},687606,"Linux Text Editors - Part 3 - Commands and Text Editors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=JoieGJJJ%2B7YY%2FUeu%2BJdxpPyEFfM%3D","linux-text-editors-part-3-commands-and-text-editors",1794084268]