Linux joe Command
The Linux joe command is used to edit text files.
Joe is a powerful full-screen text editor program. Its complexity is slightly higher than Pico, but it offers more comprehensive features. Joe can open multiple files at once, each in its own editing area, and allows cut-and-paste operations between files.
Syntax
joe [-asis][-beep][-csmode][-dopadding][-exask][-force][-help][-keepup][-lightoff][-marking][-mid][-nobackups][-nonotice][-nosta][-noxon][-orphan][-backpath<directory>][-columns<columns>][-lines<lines>][-pg<lines>][-skiptop<lines>][-autoindent crlf linums overwrite rdonly wordwrap][+<lines>][-indentc<indent character>][-istep<indent characters>][-keymap<keymap file>][-lmargin<columns>][-rmargin<columns>][-tab<columns>][file to edit]
Parameters:
The following are program parameters:
-asis Characters with codes exceeding 127 are not processed.
-backpath<directory> Specifies the directory for backup files.
-beep Beeps when an error occurs during editing.
-columns<columns> Sets the number of columns.
-csmode Enables continuous search mode.
-dopadding Buffers the program with the tty.
-exask Confirms saving the file when executing "Ctrl+k+x".
-force Forces a newline character at the end of the last line.
-help Displays help along with the program.
-keepup Displays the status bar at the top of the screen upon entering the program.
-lightoff Reverts the selected block to its original state after block commands.
-lines<lines> Sets the number of lines.
-marking The highlighted block moves with the cursor during selection.
-mid Automatically scrolls the page to center the cursor when it moves off the screen.
-nobackups Does not create backup files.
-nonotice Hides the copyright information during program execution.
-nosta Hides the status bar during program execution.
-noxon Attempts to disable the "Ctrl+s" and "Ctrl+q" key functions.
-orphan Other files are placed in separate buffers instead of opening new editing areas when multiple files are opened.
-pg<lines> Retains the number of lines from the previous page when paging with "PageUp" or "PageDown".
-skiptop<lines> Does not use the specified number of lines at the top of the screen.
The following are file parameters:
+<lines> Specifies the line number where the cursor is located when the file is opened.
-autoindent Enables automatic indentation.
-crlf Uses CR-LF characters for line breaks.
-indentc<indent character> The actual character inserted during indentation.
-istep<indent characters> The number of indent characters moved each time indentation is performed.
-keymap<keymap file> Uses a different keymap file.
-linums Adds line numbers at the beginning of each line.
-lmargin<columns> Sets the left margin.
-overwrite Sets overwrite mode.
-rmargin<columns> Sets the right margin.
-tab<columns> Sets the width of the tab.
-rdonly Opens the file in read-only mode.
-wordwrap Automatically wraps text when it exceeds the right boundary during editing.
Example
Use the joe command to edit a text file. For example, to edit a C language source code file main.c, use the following command:
joe main.c
Similar to jed, the joe editor 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
From left to right: opened file name, cursor position, current time, operation instructions
/-- linux-c--/ # Editing 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 ** #joe editor version and copyright information
Joe's Own Editor has some commonly used key combinations, such as Ctrl+K+H for online help. First press the Ctrl+K keys, then enter the letter H to bring up the help menu. This help information allows you to easily learn how to operate the joe editor.