Editing Files Flashcards
A text editor is not a…?
word processor.
Linux ships with many…?
text editors.
Nano is a…?
commonly used command line text editor.
gedit is a commonly used….?
command graphical text editor.
One of the ways Linux achieves its high degree of flexibility is …?
through the robustness of its configuration. (Configuration information typically is stored in plain ASCII text files. System administration often involves updating or correcting these configuration files. The tool for doing this work is a text editor)
A text editor is not the same as a word processor. In addition to the words of a document, word processors allow the user to specify fonts, tab settings, margins, justification, and many other features designed to affect the way a document appears on paper. Documents generated by word processors contain embedded binary codes that specify the settings for these extra features. A plain text file such as a configuration file does not contain such codes, and is not designed for printing on paper. A text editor is designed just for…?
modifying the text content of a plain ASCII file, and does not contain any embedded binary codes.
A word process would be an appropriate choice for…?
writing a letter, a memo, a bulletin, an advertising flier, or any document where the visual presentation is controlled by the editing software.
A text editor is the appropriate choice for …?
creating or modifying configuration files, program source code, system documentation, or any document (such as an HTML document) where the visual presentation is controlled by the viewing software (such as a web browser) and not the editing software. Since this course focuses on Linux system administration, text editors will be our tool of choice for most situations.
Linux comes complete with a full suite of text editors, each with specific strengths and weaknesses. Linux also includes…?
word processors for document creation as part of products such as OpenOffice.
Since all text editors work on simple text files, you may choose any one you like - there are no problems of …?
compatibility between one product and another. (Normally, you make your choice on the basis of availability, ease of use, familiarity, and special features. Some editors , for example, make it easy to generate correctly-formatted program code, making programming easier and faster.
Nano is a …?
simple, display-oriented (full screen) text editor. (Commands are displayed at the bottom of the screen, and context-sensitive help is provided. As characters are typed they are immediately inserted into the text.)
nano [OPTIONS] [FILE] …?
Opens FILE in insert mode for editing.
nano commands are displayed at the bottom of the screen throughout the edit session, making…?
recalling editor commands very easy. (the carat symbol followed by a letter is used to represent Ctrl-key combinations, so that ^K represents the CTRL+K key combination.)
nano commands…? (the ^ represents ctrl+)
Command Function
^G Get Help - opens a small help screen
^X Exit - exits (and optionally saves file)
^O Write Out - saves file
^J Justify
^R Read File - and insert at cursor position
^W Where is - search for text
^Y Previous Page - move up one page
^V Next Page - move down one page
^K Cut Text - cuts one line at a time
^U UnCut Text - inserts last cut block of text
^C Cursor Position - identifies line and column number
^T To Spell - starts spell check
Selected nano command line switches…?
Switch Function
- w disables word wrap
- v “view” file in read-only mode