LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gedit

text editor for GNOME desktop environment

TLDR

Open a file
$ gedit [path/to/file]
copy
Open several files in tabs
$ gedit [path/to/file1] [path/to/file2]
copy
Jump straight to a line number
$ gedit +[42] [path/to/file]
copy
Jump to a line and column
$ gedit +[42]:[8] [path/to/file]
copy
Force a character encoding when the guess is wrong
$ gedit --encoding [ISO-8859-1] [path/to/file]
copy
See which encodings it knows about
$ gedit --list-encodings
copy
Open in a new window rather than a tab
$ gedit --new-window [path/to/file]
copy
Start with an empty document
$ gedit --new-document
copy
Block until the file is closed, which is what git expects of an editor
$ gedit --wait [path/to/file]
copy
Read the text from a pipe
$ [command] | gedit -
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.

INSTALL

sudo apt install gedit
copy
sudo dnf install gedit
copy
sudo pacman -S gedit
copy
sudo apk add gedit
copy
sudo zypper install gedit
copy
brew install gedit
copy
nix profile install nixpkgs#gedit
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid