LinuxCommandLibrary

gedit

text editor for GNOME desktop environment

TLDR

Open a text file

$ gedit [path/to/file]
copy
Open multiple text files
$ gedit [file1] [file2] ...
copy
Open a text file with a specific encoding
$ gedit --encoding UTF-8 [path/to/file]
copy
Display a list of supported encodings
$ gedit --list-encodings
copy

SYNOPSIS

gedit [options] [file...]

DESCRIPTION

gedit is the default text editor for the GNOME desktop environment. It provides a clean, simple interface for editing text files with features like syntax highlighting for programming languages, spell checking, search and replace, and plugin support.
gedit supports tabbed editing for multiple files, automatic file backup, configurable fonts and colors, and integration with GNOME's file manager. It can handle various character encodings and line ending formats.
Plugins extend functionality with features like code snippets, bracket matching, file browser panel, and external tool integration.

PARAMETERS

--encoding ENCODING

Set the character encoding for opening files
--list-encodings
Display list of supported character encodings
-s, --standalone
Run gedit in standalone mode (separate process)
-w, --wait
Open files and wait until closed before returning
--new-window
Create a new top-level window
--new-document
Create a new document in an existing instance
+LINE
Open file at specified line number
+LINE:COLUMN
Open file at specified line and column

CONFIGURATION

~/.config/gedit/gedit.ini

User preferences including editor settings, colors, and enabled plugins.

CAVEATS

As a GTK application, gedit may have slow startup times without the GNOME environment fully loaded. Heavy files may impact performance. The plugin ecosystem varies in quality and maintenance.

HISTORY

gedit was created in 1998 as part of the GNOME project. It was designed to be a simple yet capable text editor following GNOME's human interface guidelines. The editor has evolved through multiple GNOME versions while maintaining its focus on simplicity and usability.

SEE ALSO

nano(1), vim(1), kate(1), gnome-text-editor(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community