Linux joe command
Linux joe command is used to edit text files.
Joe is a powerful full-screen text editor. Complexity of the operation a little higher than Pico, but the function is more complete. Joe can open multiple files at once, each on a per file editing area, and can perform actions between the clip file.
grammar
joe [-asis][-beep][-csmode][-dopadding][-exask][-force][-help][-keepup][-lightoff][-arking][-mid][-nobackups][-nonotice][-nosta][-noxon][-orphan][-backpath<目录>][-columns<栏位>][-lines<行数>][-pg<行数>][-skiptop<行数>][-autoindent crlf linums overwrite rdonly wordwrap][+<行数>][-indentc<缩排字符>][-istep<缩排字符数>][-keymap<按键配置文件>][-lmargin<栏数>][-rmargin<栏数>][-tab<栏数>][要编辑的文件]</p>
Parameters:
- -columns <field> Set the number of columns.
- -csmode perform a continuous search mode.
- -dopadding is a buffer between programs with tty.
- When -exask in the program, the implementation of "Ctrl + k + x", will first confirm that you want to save the file.
- -force to force the last line of the end, add a newline.
- Displayed together help -help execution.
- -keepup after entering the program, the top of the screen is the status bar.
- -lightoff selected block after block in the execution command, it will revert to its original state.
- -lines <line number> Set the number of rows.
- -marking in the selection block, the block will be highlighted with the cursor movement.
- -mid when the cursor off the screen automatically Peel the cursor back to the center.
- -nobackups not create a backup file.
- When -nonotice program execution does not display copyright information.
- When -nosta program execution, does not display the status bar.
- -noxon attempt to cancel "Ctrl + s" and "Ctrl + q" key.
- -orphan If more than one document open at the same time, other documents will be placed in a separate buffer, without additional open the editing area.
- -pg <line number> press "PageUp" or "PageDown" when changing pages, the number of lines you want to retain the previous page.
- The number of rows -skiptop <line number> do not use the top of the screen you specify.
- The following parameters for the file
- + <Number of lines> Specify the open file, the number of the cursor line.
- -autoindent automatic indentation.
- -crlf wraps using CR-LF characters.
- -indentc <Indent Characters> execution indent, insert the actual characters.
- -istep <indent characters> each execution indent moved indent characters.
- -keymap <button configuration file> use different key profiles.
- -linums in front of each line with a line number.
- -lmargin <column number> Set the left border.
- -overwrite set overwrite mode.
- -rmargin <column number> Set the right side of the border.
- -tab <column number> Settings tab width.
- If it exceeds the right side of the border, then wrap in read-only mode when -rdonly -wordwrap open a document for editing.
Examples
Use joe command to edit text files. For example, by joe editor C language source code main.c, use the following command:
joe main.c
Similar jed, joe editor C language syntax is also displayed in color. Results are as follows:
I A main.c (c) Row 1 Col 1 12:28 Ctrl-K H for help #上排从左至右分别为打开的文件名、光标所在行列数、现在时间、显示操作说明 /*-*- linux-c-*-*/ #编辑区 #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; } ** Joe's Own Editor v3.5 ** (utf-8) ** Copyright . 2006 ** #joe编辑区的版本及版权信息
joe editor has some common key combinations, for example, by Ctrl + K + H to seek online help, first press the key combination Ctrl + K, then enter the letters H, to bring up the Help menu, through the help information can be easily learned how joe editor operation.