Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
Using Linux Text Editors
-
Upload
baker-vang -
Category
Documents
-
view
43 -
download
0
description
Transcript of Using Linux Text Editors
![Page 1: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/1.jpg)
Using Linux Using Linux Text EditorsText EditorsUsing Linux Using Linux Text EditorsText Editors
![Page 2: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/2.jpg)
• Use Non-Graphical Linux Text Editors
• Graphical Text Editor
![Page 3: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/3.jpg)
• One of the reasons for this is the fact that the Registry stores data in many different formats.
• Some values accept regular text strings; other values require data to be entered in binary format.
![Page 4: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/4.jpg)
Using the vi Editor• vi Modes• ■ Normal mode ■ Insert mode• ■ Command mode ■ Replace
mode
![Page 5: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/5.jpg)
• Opening Files in vi• Ex: vi vidu1.txt
![Page 6: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/6.jpg)
Working in Insert Mode• Switch to:• S• I• Insert
![Page 7: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/7.jpg)
Command Mode Commands
■ exit Writes the current file and then closes vi.
■ wq Also writes the current file to disk and closes vi.
■ q Closes vi without saving the current file. This can only be used if the file
hasn’t been changed. If the file has been changed, then you must enter q!.
![Page 8: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/8.jpg)
Entering Commands in vi Normal Mode
■ dw Deletes the word that comes immediately after the cursor, including the
space following the word. The text is saved in a memory buffer.
■ de Deletes the word that comes immediately after the cursor, not including
the space. The text is saved in a memory buffer.
![Page 9: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/9.jpg)
Entering Commands in vi Normal Mode..
■ dd Deletes the entire current line. The text is saved in a memory buffer.
■ p Inserts the text deleted in the last deletion operation after the current cursor location
■ d$ Deletes from the insertion point to the end of the line. The text is saved in a memory buffer.
![Page 10: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/10.jpg)
Entering Commands in vi Normal Mode..
■ u Undoes the last action.■ CTRL-G Displays a status line at the
bottom of the interface. This displays the name of the file, the total number of
lines in the file, and the current cursor location. This is shown in Figure 5-
15.■ /search_term Searches for the next
instance of the term specified.
![Page 11: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/11.jpg)
Exercise 5.1Page: 234
![Page 12: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/12.jpg)
Using the Emacs Using the Emacs EditorEditor
Using the Emacs Using the Emacs EditorEditor
![Page 13: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/13.jpg)
![Page 14: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/14.jpg)
![Page 15: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/15.jpg)
• At the shell: emacs
![Page 16: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/16.jpg)
Using Quick Emacs
• Alt W: copy• Ctrl Y: paste• Ctrl W, X: save
![Page 17: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/17.jpg)
• Exercise 5.2• Page: 241
![Page 18: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/18.jpg)
Use Graphical Text Editors
It work if:■ The system is working properly.■ The system has X Windows, a window
manager, and a desktop installed.■ Your X Window System has been
configured properly to work with your hardware.
![Page 19: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/19.jpg)
Graphical Desktop Environments
•GNOME•KDE
![Page 20: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/20.jpg)
![Page 21: Using Linux Text Editors](https://reader030.fdocuments.net/reader030/viewer/2022033103/5681329c550346895d993aae/html5/thumbnails/21.jpg)