
Linux系统中的jed命令用于编辑文本文件。
Jed是一款基于Slang语言开发的编辑器,特别适合用于程序源代码的编写和编辑。
<pre class="brush:php;toolbar:false;">jed [-2n][-batch][-f][-g][-i][-I][-s][文件]
参数说明:
jed主要用于源代码的编辑工作,在编辑过程中支持语法高亮显示。例如,使用jed编辑一个C语言程序文件,可以执行以下命令:
<pre class="brush:php;toolbar:false;">jed main.c # 使用jed编辑器打开main.c文件
输出示例如下:
<pre class="brush:php;toolbar:false;">
F10 key ==> File Edit Mode Search Buffers Windows System Help # 编辑器菜单栏
/*-*- linux-c-*-*/ # 编辑区域
#include <linux>
#include <linux>
#include <linux>
static struct list_head *
net_ctl_header_lookup(struct ctl_table_root *root, struct nsproxy *namespaces)
{
return &namespaces->net_ns->sysctl_table_headers;
}
static struct ctl_table_root net_sysctl_root = {
.lookup = net_ctl_header_lookup,
};
static int sysctl_net_init(struct net *net)
{
INIT_LIST_HEAD(&net->sysctl_table_headers);
return 0;
}
-----+(Jed 0.99.18U) Emacs: main.c (C) All 6:06pm-----------------------------
# 左侧为版本信息、编辑器模拟类型、文件名,右侧为当前时间
loading /usr/share/jed/lib/modeinfo.slc
</linux></linux></linux>以上就是linux文本编辑器JED是什么-jed命令使用与实例的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号