joe的使用

更新日期: 2003/03/21

 
資料參考: man joe

在Unix 或 類Unix(FreeBSD、Linux等)系統中,幾乎都會有的文字編輯器 Joe's Own Editor
JOE是一個強力的ASCII文字螢幕編輯器,
雖然是一個最少模式使用者介面,但卻是許多使用者熟悉的編輯器,
若你使用過Micro-Pro's WordStar或Borland's "Turbo"語言,你將會覺得joe更好用!
JOE是一個全功能的UNIX 螢幕編輯器,且也提供很多編輯程式與文字的功能。

 FreeBSD/i386 (mbox.hchs.hc.edu.tw) (ttyp4)

 login:

 Password: 
可在登入(Login)後來使用。
先建一個c的目錄,然後在裡面編輯joe一個檔案(檔名可以自己取):
 mbox /home/teacher/sr731>mkdir c
 mbox /home/teacher/sr731>cd c
 mbox /home/teacher/sr731/c>joe hello.c 

你可以看到以下畫面
      I A                    t.c        Row 1 Col 1      11:35 Ctrl-K H for help
New File





** Joe's Own Editor v2.8 ** Copyright (C) 1995 Joseph H. Allen **

一般使用joe就好像早期DOS下的PE2,進入編輯模式後,
可利用游標來移動,
使用相當容易。

注意:
你只要記住熱鍵 Ctrl + K + H 就可以呼叫熱鍵選單出來查詢功能。
Help Screen turn off with ^KH more help with ESC . (^[.) 
CURSOR           GO TO             
BLOCK      DELETE     MISC             EXIT 
^B left  ^F right    ^U prev. screen  ^KB begin    ^D char.     ^KJ reformat   ^KX save 
^P up  ^N down   ^V next screen   ^KK end       ^Y line       ^T options      ^C abort 
^Z previous word  ^A beg. of line    ^KM move    ^W >word  ^R refresh      ^KZ shell 
^X next word       ^E end of line     ^KC copy     ^O word<    ^@ insert     
FILE 
SEARCH           ^KU top of file     ^KW file       ^J >line     SPELL           ^KE edit 
^KF find text       ^KV end of file    ^KY delete   ^_ undo      ^[N word        ^KR insert 
^L find next         ^KL to line No.   ^K/ filter       ^^ redo       ^[L file            ^KD save 

其中較為重要的就是,存檔: Ctrl + K + X

刪除一行:Ctrl + Y
放棄存檔:Ctrl + C 然後選擇Y




 

曾聖超老師編著