How to use the gedit command in linux

Source: Internet
Author: User
1. start: start from the menu: Application & mdash; & gt; attachment & mdash; & gt; the text editor executes the following commands from the command line: gedit2. window description: menu bar: contains all the commands required to process files in gedit. Toolbar: including which you can access... 1 from the menu bar. start:
Start from the menu: application --> attachments --> text editor
Run the following command from the command line: gedit
2. window description:
Menu bar: contains all the commands required to process files in gedit.
Toolbar: 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 compare file plug-ins.
Status bar: displays information about the current gedit activity and context information about the menu item.
3. tips:
A. open multiple files:
To open multiple files from the command line, type the following command and press the Enter key: gedit file1.txt file2.txt file3.txt
B. ship the command output to a file:
For example, to deliver the ls command output to a text file, type ls | gedit and press enter. The ls command output is displayed in a new file in the gedit window.
C. edit the highlighted mode in applicable documents:
View --> highlight mode --> markup language --> HTML: You can view html files in color mode.
D. make good use of plug-ins:
Statistics: calculates the number of lines, words, characters, and bytes in the current file. The plug-in displays the results in a "document statistics" dialog box.
Indent: indent the selected row or delete the indent from the selected row.
Insert Date/Time: Insert the current date and time to the file.
Shell: The Command displays the text output of the shell command in the output window.
Sort: sorts selected text.
E. shortcut keys:
CTRL-Z: undo
CTRL-C: replication
CTRL-V: Paste
CTRL-T: Indent
CTRL-Q: Exit
CTRL-S: Save
CTRL-R: Replacement
CTRL + Tab switch
CTRL + W close the tab


Author sunstars2009918
Related Article

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.