English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux jed command is used to edit text files.
Jed is a program written in Slang, suitable for editing program source code.
jed [-2n][-batch][-f<function>][-g<line number>][-i<file>][-I<file>][-s<string>][file]
Parameters:
-2 Display the two upper and lower editing areas.
-batch Execute in batch mode.
-f<function> Execute the Slang function.
-g<line number> Move to the specified line number in the buffer.
-i<file> Load the specified file into the buffer.
-n Do not load the jed.rc configuration file.
-s<string> Find and move to the specified string.
Jed is mainly used for editing program source code, and the syntax of the program will be displayed in color highlighting when editing source code. For example, to edit a C language source code file with jed, 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-*-*/ #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, currently simulating emacs editor, name of the opened file, current time loading /usr/share/jed/lib/modeinfo.slc