Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux joe command

Linux joe command

Linux Command Reference Linux Command Reference

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 more fully featured. Joe can open several files at once, placing each in its own editing area, and can cut and paste between files.

Syntax



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<栏数>][要编辑的文件]

Parameters:

  • The following are program parameters
  • -asis Do not process characters whose character code exceeds 127.
  • -backpath Specify the directory for backup files.
  • -beep Emit a beep when an error occurs during editing.
  • Example

    Use the joe command to edit text files. For example, to edit the C source 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 result is as follows:

    
    
    I A main.c (c) Row 1 Col 1 12:28 Ctrl-K H for help  
    
    #Top row from left to right are the opened file name, cursor row and column, current time, and display operation description
    
    /*-*- linux-c-*-*/ #Edit 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 of Joe's Editor
    
    

    The joe editor has some commonly used key combinations. For example, you can get online help via Ctrl+K+H: first press the Ctrl+K combination, then type the letter H to bring up the help menu, which conveniently shows you how to operate the joe editor.

    Linux Command Reference Linux Command Reference