English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux joe command is used to edit text files.
Joe is a powerful full-screen text editor. Its complexity of operation is slightly higher than Pico, but it has more comprehensive features. Joe can open multiple files at one time, with each file placed in a separate editing area, and can perform cut operations between files.
joe [-asis][-beep][-csmode][-dopadding][-exask][-force][-help][-keepup][-lightoff][-arking][-mid][-nobackups][-nonotice][-nosta][-noxon][-orphan][-backpath<directory>][-columns<column>][-lines<line number>][-pg<line number>][-skiptop<line number>][-autoindent crlf linums overwrite rdonly wordwrap][+<line number>][-indentc<indent character>][-istep<indent characters>][-keymap<keymap configuration file>][-lmargin<column number>][-rmargin<column number>][-tab<column number>][file to be edited]</p>
parameter:
the following are program parameters
-asis means the character code exceeds127the character does not perform any processing.
-backpath<directory> specifies the directory for backup files.
-beep emits a beep sound when there is an error during editing.
-columns<column> sets the number of columns.
-csmode allows for continuous search mode.
-dopadding is the buffer area between the program and tty.
-exask Execute "Ctrl" in the program+k+x" will first confirm whether to save the file.
-force Force a newline character at the end of the last line
-help Display help when executing the program
-keepup The status line is at the top of the screen when entering the program
-lightoff The selected block will return to its original state after executing the block command
-lines<line number> Set the number of lines
-marking When selecting a block, the highlighted block will move with the cursor
-mid When the cursor moves out of the screen, it will automatically roll the page to bring the cursor back to the center
-nobackups Do not create backup files
-nonotice Do not display copyright information when the program is executed
-nosta Do not display the status column when the program is executed
-noxon Try to cancel "Ctrl+s" with "Ctrl+The function of the "q" key.
-orphan If more than one file is opened at the same time, other files will be placed in separate buffers without opening an additional editing area
-pg<line number> The number of lines to retain on the previous page when pressing "PageUp" or "PageDown"
-skiptop<line number> Do not use the specified number of lines at the top of the screen
The following are file parameters
+<line number> Specify the line number the cursor is on when the file is opened
-autoindent Auto-indent
-crlf Use CR when line feed-LF character.
-indentc<indent character> The actual character inserted when indentation is executed
-istep<indent characters> The number of indent characters moved each time indentation is executed
-keymap<keymap configuration file> Use a different keymap configuration file
-linums Add line numbers in front of each line
-lmargin<column number> Set the left margin
-overwrite Set the overwrite mode
-rmargin<column number> Set the right margin
-tab<column number> Set the width of the tab
-rdonly Open the file in read-only mode-Wordwrap will automatically wrap lines if they exceed the right margin.
Use the joe command to edit text files. For example, to use joe to edit the C language source code main.c, use the following command:
joe main.c
Similar to jed, the syntax of C language in joe editor is displayed in color. The effect is as follows:
I A main.c (c) Row 1 Col 1 12:28 Ctrl-K H for help #The top row, from left to right, shows the name of the open file, the line and column number of the cursor, the current time, and the display of the operation instructions /*-*- 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; } ** Joe's Own Editor v3.5 ** (utf-8) ** Copyright . 2006 ** #Version and copyright information of the joe editor area
The joe editor has some commonly used combination keys, such as you can use Ctrl+K+To seek online help, first press Ctrl+Press the K combination key, then enter the letter H to bring up the help menu. Through this help information, you can conveniently learn how to operate the joe editor.