作者 主題: Lpi 102 Task Oriented Topic 108: Documentation  (閱讀 4335 次)

0 會員 與 1 訪客 正在閱讀本文。

小徒兒

  • 區域板主
  • 鑽研的研究生
  • *****
  • 文章數: 622
    • 檢視個人資料
1.108.1 Use and manage local system documentation

gunzip php_manual_tw.html.gz

***finding relevant man pages, searching man page sections
***man page section

man page 8 section
1 User commands that may be started by everyone.
2 System calls, that is, functions provided by the kernel.
3 Subroutines, that is, library functions.
4 Devices, that is, special files in the /dev directory.
5 File format descriptions, e.g. /etc/passwd.
6 Games, self-explanatory.
7 Miscellaneous, e.g. macro packages, conventions.
8 System administration tools that only root can execute.
9 Another (Linux specific) place for kernel routine documentation.
n New documentation, that may be moved to a more appropriate section.
o Old documentation, that may be kept for a grace period.
l Local documentation referring to this particular system.
 

1 executable program or shell command (1 eeeeexecutable)

3 library (library like mountain high 3)
代碼: [選擇]
locate man3|grep gz|grep -v 'X11R6'|grep -v 'de'|grep -v 'ko'|grep -v 'pl

4 device (eat device will die 4)
代碼: [選擇]
man 4 null
  man 4 tty


5 files (5 dance on file)

8 system program (only the root will be rich 8)


代碼: [選擇]
find out the command belong man page
#which xdm
#rpm -qf 'which xdm'
xorg-x11-xdm-6.7.0-2

#rpm -qd xorg-x11-xdm-6.7.0-2
/usr/X11R6/man/man1/xdm.1x.gz

#man xdm




***finding commands and man pages related to them
***man
***apropos
***whatis

#in whatis database

whatis keywords 找出主題名稱與keywords完全相符的manpages #man -f
apropos keywords 找出主題名稱與keywords部份相符的manpages #man -k

man 3 mkfifo
man -a mkfifo
man -a -Pless mkfifo

rpm -qpid kxicq-0.3.1-1.i386.rpm
rpm -qfid /usr/bin/tixwish4.1.8.0


***configuring access to man sources and the man system
***MANPATH

代碼: [選擇]
resource vbird.org
vi /etc/man.config( 有的 distribution 為 /etc/man.conf )
# 可以在這個檔案的任何地方加入底下這一行:

MANPATH /usr/share/man
MANPATH /usr/man
MANPATH /usr/local/share/man
MANPATH /usr/local/man
MANPATH /usr/X11R6/man

MANPATH /usr/local/mysql/man
# 就可以具有 man page 的能力了!



***using system documentation stored in /usr/share/doc
/usr/share/doc -->HOWTO
/usr/share/man -->manual
/usr/share/info -->info


***determining what documentation to keep in /usr/share/doc/.
#(RPM安裝) 預設的文件資料放在那個目錄
#放置一些系統說明文件的地方

***postfix
readme_directory = /usr/share/doc/postfix-2.1.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.1/samples
html_directory = /usr/share/doc/postfix-2.1.1/html

***samba
/usr/share/doc/samba:這個目錄包含了 SAMBA 的所有相關的技術手冊喔!也就是說,當您安裝好了 SAMBA 之後,您的系統裡面就已經含有相當豐富而完整的 SAMBA 使用手冊了!值得高興吧! ^_^,所以,趕緊自行參考喔!

***dhcp
/usr/share/doc/dhcp-3.0p11/dhcpd.conf.sample #設定檔範例路徑

***proftp
/usr/share/doc/proftpd-"version"/Configuration.html #您的主機內的說明文件:



 

小徒兒

  • 區域板主
  • 鑽研的研究生
  • *****
  • 文章數: 622
    • 檢視個人資料
1.108.2 Find Linux documentation on the Internet
« 回覆 #1 於: 2004-09-28 09:31 »
1.108.2 Find Linux documentation on the Internet


***using Linux documentation at sources such as the Linux Documentation Project (LDP)
http://www.tldp.or

vendor and third-party websites
http://sourceforge.net/
http://www.rpmfind.net/RPM
http://freshmeat.net/ #Linux 軟體搜尋中心
http://www.asklinux.net/beginner.txt


***newsgroups, newsgroup archives, and mailing lists.

1. 將錯誤訊息檢下,貼在google上搜尋,但往往資料過多不知如何看起:

搜尋順序  

          http://www.google.com.tw/linux
         http://www.google.com/linux
         http://groups.google.com.tw       搜循關鍵字加上 tw.bbs.comp.linux
         http://groups.google.com       搜循關鍵字加上 comp.os.linux

2.使用比照組對照組,拿一台其它的電腦試看看,或是比照已經o.k.的設定

3.將問題貼到討論區
         http://phorum.study-area.org/
         http://phorum.vbird.org//
         http://bbs.chinaunix.net/forum/
         http://groups.google.com/groups?hl=zh-TW&lr=&ie=UTF-8&group=tw.bbs.comp.linux
         http://groups.google.com/groups?hl=zh-TW&lr=&ie=UTF-8&group=comp.os.linux.questions







 

小徒兒

  • 區域板主
  • 鑽研的研究生
  • *****
  • 文章數: 622
    • 檢視個人資料
1.108.5 Notify users on system-related issues
« 回覆 #2 於: 2004-09-28 09:33 »
1.108.5 Notify users on system-related issues

***notify the users about current issues related to the system.
wall give me a reason for BBQ!
發送訊息"give me a reason for BBQ!" 給所有終端機使用者:

***through logon messages.
***/etc/issue.net #before login,由其它机器连进来看到的画面要编 issue.net

***/etc/issue #before login,若是console要看,则编 issue
echo Welcome to Linux `/bin/uname -a | /bin/cut -d\  -f3`. >> /etc/issue


***/etc/motd #after login ‘今日消息’,在登录后显示
echo "`/bin/uname -a | /bin/cut -d\  -f1,3`. (POSIX)." > /etc/motd