From bbs@aidebbs.edu.tw Thu Jul 7 18:10:49 1994 Date: Fri, 8 Jul 1994 07:01:16 +0800 From: Bulletin Board Software UNIX FAQ (小魚兒整理校正) 0. 編者言: 這份資料是從各大學 BBS 站上,將眾多人對於 UNIX 的問與答, 整理下來, 並沒有章節次序之分. 在每篇問與答之前, 皆附上問話或答話者 id, 感謝 眾多人的熱心回答問題. id 格式為: [userid@發信BBS站名 (該 id 膩稱)] 若您不想將您的文章納入這篇 FAQ, 請 mail 給我, 我將對您說聲抱歉, 並將之從此 FAQ 上剔除. 若您有任何的問題, 或發現有不正確的資料, 也請 mail 給我, 並歡迎將此 FAQ 傳播給須要的人, 謝謝. 我的 e-mail address 為: tywen@csie.nctu.edu.tw (溫宗昱, 交大資工) * * * UNIX FAQ - 3 (整理於 1994/4/12) 21. Q: [kacy@cis_nctu (沒人要的小孩.)] 在HP-UP (HP/9000) 上如何設定 8bit 模式.. A: [dwyan@cis_nctu (Solaris)] 如果我沒有記錯的話 ... stty cs8 -istrip ------ 22. Q: [TiMAS@ccsun24 (James)] I want to mail to a group..! and What do I do ? Isn't there a easy way to do this ? just use unix commands ! A1:[ghhwang@pllab1 (Gwan-Hwan Hwang)] You have to append some alias information to ~/.mailrc A2:[Traffix@cis_nctu (笨魔鬼)] 可以利用 shell command 的寫法, 先把你要mail的人寫在一個 檔案中, 比如 receiver.txt 再在command 中下 : mail `cat receiver.txt` < your.letter 也可. A3:[bighead@cis_nctu (大頭娃娃)] 就是Alias commands 啊..進elm後,按a,進入Alias commands menu.. and choose m)ake new alias 即可加入你要寄的一群人... ------ 23. Q: [u8213006@cc.nctu.edu.tw (Jyun4-jieh2 Huang2)] 請問如何就救回我不小心 remove 掉的檔案,有辦法嗎???快!我把信件夾都delete 掉了!!!! A: [inian@Maxwell (愛睏)] 據本人所知, 在UNIX下, 一旦rm了一個檔案, 則對應此檔案的區塊就會開放供作他用 , 除非您知道此檔對應區塊號碼, 並在這個區塊尚未使用前, 執行救復的功能 可是以UNIX這種多工系統來說, 几乎是不可能做到的 請不要太難過, 以後重要檔案記得備份就是了 ------ 24. Q: [none] Email 如何加入簽名檔??? A: [Chih-Hao Tsai (g8132101@ccunix.ccu.edu.tw)] localsignature=你的簽名檔路徑及檔名(用於同一主機) remotesignature=你的簽名檔路徑及檔名(用於對外信件) 你可以把對內對外的簽名檔指向同一個檔案。也可以指向不同的檔案。 ------ 25. Q: [ptlee@phoenix (Oldman)] 我的prompt為 /u/gcp/82/8217xxx 當下了 cd .. cd .. 它為何便成 /tmp_mnt/u/gcp/gcp 而不是 /u/gcp A1:[dabin@cis_nctu (大丙)] 那應該是 link 的關係, 例如: dir_A -> dir_B (dir_A link 到 dir_B) 當你 cd 到 dir_A, prompt 會顯示 dir_A, 但實際目錄卻在 dir_B. 因此 如果你下 cd .. 命令, 它會 cd 到 dir_B 的上層目錄去, 因此 prompt 就 是 dir_B 的上層目錄的名稱了。 檢查看看 /u, /u/gcp, /u/gcp/82 是否有 link 到 /tmp_mnt, /tmp_mnt/u, /tmp_mnt/u/gcp, 或 /tmp_mnt/u/gcp/gcp 去。 A2:[daniel@info2.csie.nctu.edu.tw (Shung-I You)] set symlinks=ignore ------ 26. Q: [mryang@cse_ttit (material)] 在UNIX有如DOS中pe2之文書處理軟體 A: [biker@phoenix (垂垂 )] You can try "jove". It is very like "pe2". ------ 27. Q: [blackbean@cis_nctu (愛我)] 用 finger 時 常常會看到有一項資料為 In Real life:.... 請問那個東東如何產生 ㄋㄟ ? 先進們 告訴我 好嗎 ? A1:[adams@cis_nctu (亞當斯)] 那是加在系統的 passwd 檔中,加入以後 finger 就可以看到了 A2:[kcchao@cis_nctu (Chao)] 可用chfn自行改變! ------ 28. Q: [u8213006@cc.nctu.edu.tw (_龍的傳人_)] 要如何由ip address查host name呢? 謝謝! A1:[dawa@cis_nctu (dawa)] eg., look up host name of 140.113.23.3: cissune3:/AUTO/home6/is79/is79066:[47]%nslookup Default Server: cisserv.cis.nctu.edu.tw Address: 140.113.23.1 > set type=ptr > 3.23.113.140.in-addr.arpa. Server: cisserv.cis.nctu.edu.tw Address: 140.113.23.1 3.23.113.140.in-addr.arpa host name = bbs.cis.nctu.edu.tw A2:[From: Jay@phoenix (連魁)] 不必那麼麻煩。domain name 可以用 ncftp來查。 用法如下: ========================================================================== NcFTP 1.5.0 (Aug 22, 1993) by Mike Gleason, NCEMRSoft. Tip: The type of progress-meter that will be used depends if the remote hos. supports the SIZE command, and whether your terminal is capable of ANS. escape codes. (Mail) ncftp>lookup 140.113.17.154 ccsun24.csie.nctu.edu.tw 140.113.17.154 (Mail) ncftp>lookup 140.113.4.21 ccsun11.cc.nctu.edu.tw 140.113.4.21 ========================================================================== A3:[mznian@cielab.nthu.edu.tw (Ming-zhang Nian)] 有個dig的程式很方便,example: hostname% dig -x ip_address ------ 29. Q: [daemon@nchu_bbs (Happy Xmas !!!!!!)] 在 Sun Sparc WS 下,當 User Idle 過久時系統可以自動的 Logut. 請問如何設定呢 ? Thanks. A: [daniel@info2.csie.nctu.edu.tw (Shung-I You)] If you use tcsh. try >set autologout=1 1 miniute then logout. >set autologout=(10,5) after 10 minutes then logout. after 5 minutes then lock by ansking password. ------ 30. Q: [MarxKing@cis_nctu (boy)]  .netrc 怎麼寫?? 如下寫法錯在那裡,怎麼改?? _______________ machine 140.111.1.10 login ftp password Marx@Munchkin.Oz.nthu.edu.tw _______________ A: [u7912060@cc.nctu.edu.tw (Jason Lien)] .netrc的格式應該如下 ---------------------------------------------------------------- machine IPaddress(or domain name) username your-id password your-password machine 140.111.1.10 login ftp password Max@Munchkin.Oz.nthu.edu.tw ----------------------------------------------------------------- chmod 600 .netrc * * *