Linux joe命令用于編輯文本文件。
Joe是一個功能強大的全屏幕文本編輯程序。操作的復雜度要比Pico高一點,但是功能較為齊全。Joe一次可開啟多個文件,每個文件各放在一個編輯區內,并可在文件之間執行剪貼的動作。
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<欄數>][要編輯的文件]
參數:
利用joe命令編輯文本文件。例如利用joe編輯C 語言源代碼main.c,使用如下命令:
joe main.c
與jed類似,joe編輯器中C語言的語法也以彩色的方式顯示。效果如下:
I A main.c (c) Row 1 Col 1 12:28 Ctrl-K H for help #上排從左至右分別為打開的文件名、光標所在行列數、現在時間、顯示操作說明 /*-*- linux-c-*-*/ #編輯區 #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 ** #joe編輯區的版本及版權信息
joe編輯器有一些常用的組合鍵,例如可以通過Ctrl+K+H 尋求聯機幫助,首先按Ctrl+K組合鍵,再輸入字母H,即可調出幫助菜單,通過該幫助信息可以方便地獲知如何對joe 編輯器進行操作。