jed

abbr.joint engineering design joint engineering design

Linux jed command syntax

Function: jed command is used to edit text files.

Syntax: jed [-2n][-batch][-f<function>][-g<number of lines>][-i<file>][- I<file>][-s<string>][file]

Linux jed command example

jed is mainly used to edit the source code of the program. When editing the source code, the syntax of the program will be displayed in color highlighting. For example, to use jed to edit a source code file in C language, you can use the following command:

jed main.c       #用jed編輯器打開main.c 文件

The output result is as follows:

F10 key ==> File Edit Mode Search Buffers Windows System Help #編輯器菜單  
/*-*- linux-c-*-*/ #編輯區(qū)  
#include <linux/mm.h> 
#include <linux/sysctl.h> 
#include <linux/nsproxy.h> 
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-----------------------------  
#從左到右分別為jed版本編號、當(dāng)前是模擬emacs編輯器、打開的文件名、現(xiàn)在的時間  
loading /usr/share/jed/lib/modeinfo.slc