Linux

  1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: gedit
Command Library

NAME

gedit - simple text editor for GNOME

The gedit application is a simple text editor. You can use gedit to create and edit text files. You can use gedit plugins to perform a variety of tasks related to text-editing from within the gedit window.

 

SYNTAX

gedit [--help] [--debug[-section]] [--new-window] [--new-document] [--quit] [filename(s)...]  

DESCRIPTION

gedit is a text editor for the GNOME Desktop.

 

OPTIONS

--help
Prints the command line options.
--debug[-section]
Runs gedit in debug mode. In debug mode function names are dumped to the console when they are invoked. Specific sections for debugging are allowed. The sections are: window, commands, document, file, plugins, prefs, print, search, undo, view and recent. Run `gedit --help' for more information.
--new-window
Create a new toplevel window in an existing instance of gedit.
--new-document
Create a new document in an existing instance of gedit.
--quit
Quit an existing instance of gedit.
filename(s)...
Specifies the file to open when gedit starts - if this is not specified, gedit will load a blank file with an Untitled label. Multiple files can be loaded if they are separated by spaces. gedit also supports handling of remote files. For example, you can pass the location of a webpage to gedit, like "http://www.gnome.org", or load a file from a FTP server, like "ftp://ftp.gnome.org/robots.txt".
 

PIPES

Gedit accepts pipes, so it can be run after another command to load the output into gedit. For example :
ls -l | gedit
 

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.