Easy Tutorial
❮ Linux Comm Apt Linux Comm Halt ❯

Linux jed Command

Linux Command Manual

The Linux jed command is used to edit text files.

Jed is a program written in Slang, suitable for editing program source code.

Syntax

jed [-2n][-batch][-f<function>][-g&lt;line number>][-i<file>][-I<file>][-s<string>][file]

Parameters:

Example

Jed is primarily used for editing program source code, with syntax highlighting displayed in color. For example, to edit a C language source code file using jed, you can use the following command:

jed main.c       # Open the main.c file with the jed editor

Output result is as follows:

F10 key ==> File Edit Mode Search Buffers Windows System Help # Editor menu  
/*-*- linux-c-*-*/ # Edit area  
#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-----------------------------  
# From left to right: jed version number, current emulation of emacs editor, opened file name, current time  
loading /usr/share/jed/lib/modeinfo.slc

Linux Command Manual

❮ Linux Comm Apt Linux Comm Halt ❯