LinuxCommandLibrary
GitHub F-Droid Google Play Store

Pico Text Editor

Getting Started

Pico is the built-in editor from the Pine email client and the predecessor of Nano. It shows available shortcuts at the bottom of the screen; the ^ symbol means Ctrl.
$ pico textfile.txt
copy
$ pico +25 textfile.txt
copy
KeyDescription
Ctrl+gDisplay help text
Ctrl+xExit pico (prompts to save if modified)
Many systems no longer ship pico; its open-source successor nano uses the same keybindings, and pico is often just an alias for it.

Navigation

Use arrow keys for basic movement, or these Emacs-style shortcuts.
KeyDescription
Ctrl+fMove forward one character
Ctrl+bMove backward one character
Ctrl+nMove to next line
Ctrl+pMove to previous line
Ctrl+aMove to beginning of line
Ctrl+eMove to end of line
Ctrl+vScroll down one page
Ctrl+yScroll up one page
Ctrl+cShow current cursor position

File Operations

Pico prompts for a filename when saving.
KeyDescription
Ctrl+oWrite out (save) the current file
Ctrl+rRead (insert) another file into the current one

Editing

Use Ctrl+^ to start selecting text, then move the cursor to extend the selection.
KeyDescription
Ctrl+dDelete the character under the cursor
Ctrl+^Mark text (start selection)
Ctrl+kCut the current line (or selected text)
Ctrl+uPaste (uncut) the last cut text
Ctrl+iInsert a tab
Ctrl+jJustify the current paragraph
Ctrl+tSpell check
Ctrl+lRefresh the display

Search

Ctrl+W stands for "Where is". Press Enter at the prompt to repeat the previous search.
KeyDescription
Ctrl+wSearch for text
Copied to clipboard
Kai

AltStyle によって変換されたページ (->オリジナル) /