HOW TO INSTALL GEDIT ?

HELLO,
First of all, Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system. In Windows, we can call this Notepad. It is UTF-8 compatible and supports most standard text editor features as well as many advanced features. These include multilanguage spell checking, extensive support of syntax highlighting, and a large number of official and third party plugins. Gedit is suited for both basic and more advanced text editing and is released under the GNU General Public License.




So, let's install gedit now. Just open your terminal (ctl+alt+t) and follow the steps.

Installing Gedit

1.  Type this code.
sudo apt-get install gedit
2.  If you have do the step 1, click Applications → Accessories → Text Editor to open gedit. So gedit is showing like this picture.



Command Line Tips

Opening gedit via the command line allows the user to take advantage of several options unavailable from the GUI menu. If a path is not included in the startup command, gedit will look for the file in the current directory. If the file is not found, gedit will open a blank file with the file name entered on the command line:

  • To open a specific file
    gedit filename
  • To open multiple files:
    gedit file1 file2
  • To edit system files such as sources.list and fstab, open it with administrative privileges. Note graphical applications use gksudo rather than sudo.
    gksudo gedit
  • To open at a specific line number, useful when an error message includes the line number, include "+<line number>". (gksudo is used in this example since the file is a system file owned by root): 
    gksudo gedit +21 /etc/apt/sources.list

Uninstalling gedit

  • If you want to Uninstall gedit, Just type:

sudo apt-get remove gedit