Linux Comm Jed
# 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
**Parameters**:
* -2 Display two editing windows, top and bottom.
* -batch Execute in batch mode.
* -f Execute a Slang function.
* -g Move to the specified line number in the buffer.
* -i Load the specified file into the buffer.
* -n Do not load the jed.rc configuration file.
* -s Find and move to the specified string.
### Example
`jed` is mainly used for editing program source code. When editing source code, it will display the program's syntax with color highlighting. For example, to use `jed` to edit a C language source code file, you can use the following command:
jed main.c #Open the main.c file with the jed editor
The output result is as follows:
F10 key ==> File Edit Mode Search Buffers Windows System Help #Editor menu /*-*- linux-c-*-*/ #Editing area #include #include #include 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, currently emulating Emacs editor, opened filename, current time loading /usr/share/jed/lib/modeinfo.slc
[ Linux Command Manual](#)
YouTip