linux 编辑gedit
Linux users normally edit configuration files with terminal-based tools like nano
and vim
. If you want to edit a file graphically—even a system file—the gedit
text editor makes it painless and easy.
Linux用户通常使用基于终端的工具(例如nano
和vim
来编辑配置文件。 如果要以图形方式编辑文件(甚至是系统文件),则gedit
文本编辑器将使其变得轻松而轻松。
文件,无处不在的文件 (Files, Files Everywhere)
An oft-repeated phrase concerning Linux and other Unix-based operating systems such as macOS is “everything is a file.”
关于Linux和其他基于Unix的操作系统(例如macOS),经常重复出现的一句话是“ 一切都是文件” 。
While that’s not strictly accurate, text files are often used for system logs and configuration. You can read these files to learn more about the inner workings of your operating system, and you can edit them to change its behavior.
虽然这不是严格准确的,但文本文件通常用于系统日志和配置。 您可以阅读这些文件以了解有关操作系统内部工作的更多信息,还可以对其进行编辑以更改其行为。
The default GNOME text editor is gedit
, so you should find it on any system with a GNOME desktop environment. That includes Ubuntu, Fedora, Debian, CentOS, and Red Hat. It’s a handy tool for editing files when all you need is just enough editor to get the job done—without the learning curve of some of the power-house editors like vim
.
缺省的GNOME文本编辑器是gedit
,因此您应该在具有GNOME桌面环境的任何系统上找到它。 其中包括Ubuntu,Fedora,Debian,CentOS和Red Hat。 当您只需要足够的编辑器即可完成工作时,它便是一种编辑文件的便捷工具,而无需像vim
这样的强大编辑器的学习曲线。
启动gedit (Launching gedit)
To start gedit
from the command line, type gedit
and hit Enter.
要从命令行启动gedit
,请键入gedit
然后按Enter。
The gedit
text editor will appear shortly.
gedit
文本编辑器将很快出现。
It’s an uncluttered and clean application window. You can get on with the task of typing up whatever you’re working on with no distractions.
这是一个整洁干净的应用程序窗口。 您可以轻松完成键入任何工作的任务。
Of course, you can also launch gedit from your Linux desktop’s application menu. It’s often named “Text Editor.” Just search the applications menu for “gedit.”
当然,您也可以从Linux桌面的应用程序菜单启动gedit。 它通常被称为“文本编辑器”。 只需在应用程序菜单中搜索“ gedit”即可。