Linux Comm Joe
[ Linux Command Manual](#)
The Linux `joe` command is used to edit text files.
Joe is a powerful full-screen text editor. It is slightly more complex to operate than Pico but offers more comprehensive features. Joe can open multiple files at once, each in its own editing area, and allows for cutting and pasting between files.
### Syntax
joe [+]
**Parameters**:
* The following are program parameters
* -asis Do not process characters with codes above 127.
* -backpath Specify the directory for backup files.
* -beep Beep if an error occurs during editing.
* -columns Set the number of columns.
* -csmode Enable continuous search mode.
* -dopadding Create a buffer between the program and the tty.
* -exask When executing "Ctrl+k+x" within the program, it will first ask for confirmation before saving the file.
* -force Force a newline character at the end of the last line.
* -help Display help information when running the program.
* -keepup After entering the program, the top of the screen displays the status line.
* -lightoff After executing a block command, the selected block will revert to its original state.
* -lines Set the number of lines.
* -marking When selecting a block, the highlighted block will move with the cursor.
* -mid Automatically scroll the page to keep the cursor centered when it moves off-screen.
* -nobackups Do not create backup files.
* -nonotice Do not display copyright information when the program runs.
* -nosta Do not display the status line when the program runs.
* -noxon Attempt to disable the "Ctrl+s" and "Ctrl+q" key functions.
* -orphan If more than one file is opened simultaneously, the other files will be placed in separate buffers instead of opening new editing areas.
* -pg When paging with "PageUp" or "PageDown", specify the number of lines to retain from the previous page.
* -skiptop Do not use the specified number of lines at the top of the screen.
* The following are file parameters
* + Specify the line number where the cursor should be placed when opening the file.
* -autoindent Enable automatic indentation.
* -crlf Use CR-LF characters for line breaks.
* -indentc Specify the actual character to insert when indenting.
* -istep Specify the number of indent characters to move each time indentation is performed.
* -keymap Use a different keymap configuration file.
* -linums Display line numbers before each line.
* -lmargin Set the left margin.
* -overwrite Set overwrite mode.
* -rmargin Set the right margin.
* -tab Set the width of the tab character.
* -rdonly Open the file in read-only mode. -wordwrap Automatically wrap lines when they exceed the right margin.
### Example
Use the `joe` command to edit a text file. For example, to edit the C source code file `main.c` with joe, use the following command:
joe main.c
Similar to `jed`, the joe editor also displays C language syntax 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 opened filename, cursor row and column, current time, and operation instructions /*-*- 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; } ** Joe's Own Editor v3.5 ** (utf-8) ** Copyright . 2006 ** #Version and copyright information in the joe editor area
The joe editor has some commonly used key combinations. For example, you can access online help by pressing Ctrl+K+H. First press the Ctrl+K key combination, then type the letter H to bring up the help menu. This help information makes it easy to learn how to operate the joe editor.
[ Linux Command Manual](#)
YouTip