• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

gedit: command not found

by admin

The gedit text editor is the default text editor used in GNOME desktop environments and is a member of the GNU Project. Unlike Vim and nano, gedit has a GUI with a typical menu-based design that makes it easy to work with. It also has features like syntax highlighting and spell checking and can be customized through plugins. While not as powerful as Vim, gedit may still be useful in systems with a desktop environment.

Although you can launch gedit from the desktop, you can also use the CLI with the gedit command. The syntax is similar to vim and nano—no argument opens a new file, whereas providing a file name as an argument either opens an existing file or creates a new one with that name.

If you encounter the below error while running the gedit command:

gedit: command not found

you may try installing the gedit package as per the choice of your distribution:

Distribution Command
OS X brew install gedit
Debian apt-get install gedit
Ubuntu apt-get install gedit
Arch Linux pacman -S gedit
Kali Linux apt-get install gedit
CentOS yum install gedit
Fedora dnf install gedit
Raspbian apt-get install gedit

gedit Command Examples

1. Open a text file:

# gedit path/to/file

2. Open multiple text files:

# gedit file1 file2 ...

3. Open a text file with a specific encoding:

# gedit --encoding=UTF-8 path/to/file

4. Display a list of supported encodings:

# gedit --list-encodings

Filed Under: Linux

Some more articles you might also be interested in …

  1. lvresize: command not found
  2. Image optimization with webp
  3. CentOS / RHEL 7 : How to enable telnet for a group of users
  4. i3 Command Examples in Linux
  5. “The requested URL returned error: 403 Forbidden” – yum update error
  6. Basic “ls” Command examples in Linux
  7. How to Start, Stop, Restart, Check Status IIS Service by Command Line
  8. debuild Command Examples in Linux
  9. date Command Examples in Linux
  10. acountry Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright