The use of Gedit editor under Linux __linux

Source: Internet
Author: User

1, start:
Starting from a menu: application--> attachment--> Text Editor
Execute the following command from the command line: gedit

2, Window Description:
Menu bar: Contains all the commands you need to work with files in Gedit.
Toolbars: Contains a subset of commands that you can access from the menu bar.
Display area: This area contains the text of the file you are editing.
Output window: Displays the output returned by the Shell command plug-in and the diff file plug-in.
Status bar: Displays information about the current gedit activity and contextual information about the menu item.
3, small tips:
A, open multiple files:
To open multiple files from the command line, type the following command, and then press ENTER: Gedit file1.txt file2.txt file3.txt
B. Deliver the command output to a file:
For example, to deliver the output of the LS command to a text file, type ls | Gedit, and then press ENTER. The output of the LS command is displayed in a new file in the Gedit window.
C, change the highlighting mode for file preparation:
View--> highlighting Mode--> Markup Language-->html You can view HTML files in color mode
D, the use of Plug-ins:
Document Statistics: Calculates the number of lines in the current file, the number of words, the number of characters, and the number of bytes. The plug-in displays the results in a Document Statistics dialog box.
Indent: Indents selected rows or removes indents from selected rows.
Insert Date/Time: Inserts the current date and time in the file.
Shell: command displays the text output of the shell command in the Output window.
Sort: Sorts the selected text.
E, shortcut keys:
Ctrl-z: Undo
Ctrl-c: Copying
Ctrl-v: Paste
CTRL-T: Indent
Ctrl-q: Exit
Ctrl-s: Saving
Ctrl-r: Replacing
Ctrl+tab switch
Ctrl+w off tabs



Url:http://www.2cto.com/os/201203/123476.html






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.