特殊:Badtitle/NS100:NanoHowto:修订间差异
小 正在重定向到 UbuntuHelp:Nano |
小 正在重定向到 UbuntuHelp:Nano |
||
(未显示同一用户的1个中间版本) | |||
第28行: | 第28行: | ||
`note`: How does Justify/Unjustify work? | `note`: How does Justify/Unjustify work? | ||
`note`: Near the top the page implies that text highlighting is not possible in nano. In fact, it is, but is turned off by default. You have to enable it in `~/.nanorc`. | `note`: Near the top the page implies that text highlighting is not possible in nano. In fact, it is, but is turned off by default. You have to enable it in `~/.nanorc`. | ||
{{From|https://help.ubuntu.com/community/NanoHowto}} | {{From|https://help.ubuntu.com/community/NanoHowto}} | ||
{{Languages|UbuntuHelp:NanoHowto}} | {{Languages|UbuntuHelp:NanoHowto}} | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月20日 (一) 00:08的最新版本
重定向到:
Draft
Nano Howto
Introduction
This page will explain simple things with nano, and will give links to off site help.
What is nano
Nano is a text editor that is not flashy or fancy. It is a clone of the pico editor which is shipped with the pine email client. Nano is nice to just make quick edits in text files, but most do not prefer it to do heavy editing. Other editor's such as "emacs", "vim", "gedit" all offer coloring of text and auto formating. Nano gets the job done without any distractions.
How to start nano
To just start a regular nano session.
bash:~$ nano -w <nameoffile>
This will open <nameoffile> into a editing window. You can create new files like this or edit existing files. The "-w" is present to disable wordwrapping, which can cause problems in some types of files.
How to use nano
The basic controls for nano are shown on the bottom of the screen. The ^
mark means to hold the control key and press the letter following it. For example, ^X (quit) means hold control and press X. To see more nano commands, hit control-G. On the help screen, M- before a letter means to hold down Meta or Alt and press it. So M-M (enable mouse support) means hold alt and press M. nano uses some odd conventions:
- WriteOut (control-O) - save
- Cur Pos (control-C) - tells you what line and letter the cursor is on
- Read File (control-R) - inserts the contents of another file
- pressing Alt-F after control-R behaves just like an Open command in other text editors.
- Where Is (control-W) - searches for some text in the file
The help screen explains most of the commands very well. Press Control-G to read it!
Links
`note`: How does Justify/Unjustify work? `note`: Near the top the page implies that text highlighting is not possible in nano. In fact, it is, but is turned off by default. You have to enable it in `~/.nanorc`.
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NanoHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/af | • {{#if: UbuntuHelp:NanoHowto|Afrikaans| [[::NanoHowto/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ar | • {{#if: UbuntuHelp:NanoHowto|العربية| [[::NanoHowto/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/az | • {{#if: UbuntuHelp:NanoHowto|azərbaycanca| [[::NanoHowto/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/bcc | • {{#if: UbuntuHelp:NanoHowto|جهلسری بلوچی| [[::NanoHowto/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/bg | • {{#if: UbuntuHelp:NanoHowto|български| [[::NanoHowto/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/br | • {{#if: UbuntuHelp:NanoHowto|brezhoneg| [[::NanoHowto/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ca | • {{#if: UbuntuHelp:NanoHowto|català| [[::NanoHowto/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/cs | • {{#if: UbuntuHelp:NanoHowto|čeština| [[::NanoHowto/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/de | • {{#if: UbuntuHelp:NanoHowto|Deutsch| [[::NanoHowto/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/el | • {{#if: UbuntuHelp:NanoHowto|Ελληνικά| [[::NanoHowto/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/es | • {{#if: UbuntuHelp:NanoHowto|español| [[::NanoHowto/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/fa | • {{#if: UbuntuHelp:NanoHowto|فارسی| [[::NanoHowto/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/fi | • {{#if: UbuntuHelp:NanoHowto|suomi| [[::NanoHowto/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/fr | • {{#if: UbuntuHelp:NanoHowto|français| [[::NanoHowto/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/gu | • {{#if: UbuntuHelp:NanoHowto|ગુજરાતી| [[::NanoHowto/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/he | • {{#if: UbuntuHelp:NanoHowto|עברית| [[::NanoHowto/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/hu | • {{#if: UbuntuHelp:NanoHowto|magyar| [[::NanoHowto/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/id | • {{#if: UbuntuHelp:NanoHowto|Bahasa Indonesia| [[::NanoHowto/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/it | • {{#if: UbuntuHelp:NanoHowto|italiano| [[::NanoHowto/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ja | • {{#if: UbuntuHelp:NanoHowto|日本語| [[::NanoHowto/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ko | • {{#if: UbuntuHelp:NanoHowto|한국어| [[::NanoHowto/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ksh | • {{#if: UbuntuHelp:NanoHowto|Ripoarisch| [[::NanoHowto/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/mr | • {{#if: UbuntuHelp:NanoHowto|मराठी| [[::NanoHowto/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ms | • {{#if: UbuntuHelp:NanoHowto|Bahasa Melayu| [[::NanoHowto/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/nl | • {{#if: UbuntuHelp:NanoHowto|Nederlands| [[::NanoHowto/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/no | • {{#if: UbuntuHelp:NanoHowto|norsk| [[::NanoHowto/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/oc | • {{#if: UbuntuHelp:NanoHowto|occitan| [[::NanoHowto/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/pl | • {{#if: UbuntuHelp:NanoHowto|polski| [[::NanoHowto/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/pt | • {{#if: UbuntuHelp:NanoHowto|português| [[::NanoHowto/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ro | • {{#if: UbuntuHelp:NanoHowto|română| [[::NanoHowto/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/ru | • {{#if: UbuntuHelp:NanoHowto|русский| [[::NanoHowto/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/si | • {{#if: UbuntuHelp:NanoHowto|සිංහල| [[::NanoHowto/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/sq | • {{#if: UbuntuHelp:NanoHowto|shqip| [[::NanoHowto/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/sr | • {{#if: UbuntuHelp:NanoHowto|српски / srpski| [[::NanoHowto/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/sv | • {{#if: UbuntuHelp:NanoHowto|svenska| [[::NanoHowto/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/th | • {{#if: UbuntuHelp:NanoHowto|ไทย| [[::NanoHowto/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/tr | • {{#if: UbuntuHelp:NanoHowto|Türkçe| [[::NanoHowto/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/vi | • {{#if: UbuntuHelp:NanoHowto|Tiếng Việt| [[::NanoHowto/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/yue | • {{#if: UbuntuHelp:NanoHowto|粵語| [[::NanoHowto/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/zh | • {{#if: UbuntuHelp:NanoHowto|中文| [[::NanoHowto/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/zh-hans | • {{#if: UbuntuHelp:NanoHowto|中文(简体)| [[::NanoHowto/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NanoHowto | UbuntuHelp:NanoHowto | {{#if: | :}}NanoHowto}}/zh-hant | • {{#if: UbuntuHelp:NanoHowto|中文(繁體)| [[::NanoHowto/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NanoHowto|:NanoHowto|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NanoHowto/zh | | {{#ifexist: NanoHowto/zh | | {{#ifeq: {{#titleparts:NanoHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NanoHowto|1|-1|}} | zh | | }}