bash-doc 套件探索

下載套件

下載「bash-doc」這個套件。

$ apt-get download bash-doc

解開套件

解開「bash-doc_4.3-7ubuntu1.5_all.deb」

$ dpkg -x bash-doc_4.3-7ubuntu1.5_all.deb bash-doc

觀看資料夾結構

執行

$ tree bash-doc

顯示

bash-doc
└── usr
    └── share
        ├── doc
        │   ├── bash
        │   │   ├── bash.html
        │   │   ├── bash.pdf
        │   │   ├── bashref.html
        │   │   ├── bashref.pdf
        │   │   └── examples
        │   │       ├── complete
        │   │       │   ├── bashcc-1.0.1.tar.gz
        │   │       │   ├── bash_completion
        │   │       │   ├── cdfunc
        │   │       │   └── complete-examples
        │   │       ├── functions
        │   │       │   ├── array-stuff
        │   │       │   ├── array-to-string
        │   │       │   ├── autoload
        │   │       │   ├── autoload.v2
        │   │       │   ├── autoload.v3
        │   │       │   ├── basename
        │   │       │   ├── csh-compat
        │   │       │   ├── dirname
        │   │       │   ├── exitstat
        │   │       │   ├── external
        │   │       │   ├── fact
        │   │       │   ├── fstty
        │   │       │   ├── func
        │   │       │   ├── inetaddr
        │   │       │   ├── inpath
        │   │       │   ├── isnum2
        │   │       │   ├── isvalidip
        │   │       │   ├── ksh-cd
        │   │       │   ├── ksh-compat-test
        │   │       │   ├── kshenv
        │   │       │   ├── login
        │   │       │   ├── notify.bash
        │   │       │   ├── seq
        │   │       │   ├── seq2
        │   │       │   ├── shcat
        │   │       │   ├── shcat2
        │   │       │   ├── sort-pos-params
        │   │       │   ├── substr
        │   │       │   ├── substr2
        │   │       │   ├── whatis
        │   │       │   ├── whence
        │   │       │   └── which
        │   │       ├── INDEX.html
        │   │       ├── INDEX.txt
        │   │       ├── misc
        │   │       │   ├── aliasconv.bash
        │   │       │   ├── aliasconv.sh
        │   │       │   └── cshtobash
        │   │       ├── scripts
        │   │       │   ├── cat.sh
        │   │       │   ├── center
        │   │       │   ├── inpath
        │   │       │   ├── shprompt
        │   │       │   ├── spin.bash
        │   │       │   ├── xterm_title
        │   │       │   └── zprintf
        │   │       └── startup-files
        │   │           ├── Bash_aliases
        │   │           ├── bash-profile
        │   │           ├── Bash_profile
        │   │           ├── bashrc
        │   │           ├── Bashrc.bfox
        │   │           └── README
        │   └── bash-doc
        │       ├── bash.html -> ../bash/bash.html
        │       ├── bash.pdf -> ../bash/bash.pdf
        │       ├── bashref.html -> ../bash/bashref.html
        │       ├── bashref.pdf -> ../bash/bashref.pdf
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       └── examples -> ../bash/examples
        ├── doc-base
        │   ├── bash
        │   └── bashref
        └── info
            └── bash.info.gz

14 directories, 67 files

若有安裝這個套件的話,可執行

$ dpkg -L bash-doc

顯示

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/bash-doc
/usr/share/doc/bash-doc/changelog.Debian.gz
/usr/share/doc/bash-doc/copyright
/usr/share/doc/bash
/usr/share/doc/bash/bashref.pdf
/usr/share/doc/bash/bashref.html
/usr/share/doc/bash/examples
/usr/share/doc/bash/examples/scripts
/usr/share/doc/bash/examples/scripts/zprintf
/usr/share/doc/bash/examples/scripts/inpath
/usr/share/doc/bash/examples/scripts/center
/usr/share/doc/bash/examples/scripts/xterm_title
/usr/share/doc/bash/examples/scripts/spin.bash
/usr/share/doc/bash/examples/scripts/shprompt
/usr/share/doc/bash/examples/scripts/cat.sh
/usr/share/doc/bash/examples/functions
/usr/share/doc/bash/examples/functions/fstty
/usr/share/doc/bash/examples/functions/seq2
/usr/share/doc/bash/examples/functions/shcat2
/usr/share/doc/bash/examples/functions/ksh-cd
/usr/share/doc/bash/examples/functions/array-to-string
/usr/share/doc/bash/examples/functions/exitstat
/usr/share/doc/bash/examples/functions/sort-pos-params
/usr/share/doc/bash/examples/functions/autoload.v3
/usr/share/doc/bash/examples/functions/seq
/usr/share/doc/bash/examples/functions/dirname
/usr/share/doc/bash/examples/functions/autoload
/usr/share/doc/bash/examples/functions/basename
/usr/share/doc/bash/examples/functions/whatis
/usr/share/doc/bash/examples/functions/shcat
/usr/share/doc/bash/examples/functions/kshenv
/usr/share/doc/bash/examples/functions/notify.bash
/usr/share/doc/bash/examples/functions/inpath
/usr/share/doc/bash/examples/functions/csh-compat
/usr/share/doc/bash/examples/functions/fact
/usr/share/doc/bash/examples/functions/whence
/usr/share/doc/bash/examples/functions/login
/usr/share/doc/bash/examples/functions/autoload.v2
/usr/share/doc/bash/examples/functions/external
/usr/share/doc/bash/examples/functions/ksh-compat-test
/usr/share/doc/bash/examples/functions/substr2
/usr/share/doc/bash/examples/functions/inetaddr
/usr/share/doc/bash/examples/functions/array-stuff
/usr/share/doc/bash/examples/functions/which
/usr/share/doc/bash/examples/functions/substr
/usr/share/doc/bash/examples/functions/func
/usr/share/doc/bash/examples/functions/isnum2
/usr/share/doc/bash/examples/functions/isvalidip
/usr/share/doc/bash/examples/complete
/usr/share/doc/bash/examples/complete/bash_completion
/usr/share/doc/bash/examples/complete/complete-examples
/usr/share/doc/bash/examples/complete/bashcc-1.0.1.tar.gz
/usr/share/doc/bash/examples/complete/cdfunc
/usr/share/doc/bash/examples/misc
/usr/share/doc/bash/examples/misc/cshtobash
/usr/share/doc/bash/examples/misc/aliasconv.sh
/usr/share/doc/bash/examples/misc/aliasconv.bash
/usr/share/doc/bash/examples/startup-files
/usr/share/doc/bash/examples/startup-files/bashrc
/usr/share/doc/bash/examples/startup-files/README
/usr/share/doc/bash/examples/startup-files/Bash_aliases
/usr/share/doc/bash/examples/startup-files/bash-profile
/usr/share/doc/bash/examples/startup-files/Bash_profile
/usr/share/doc/bash/examples/startup-files/Bashrc.bfox
/usr/share/doc/bash/examples/INDEX.txt
/usr/share/doc/bash/examples/INDEX.html
/usr/share/doc/bash/bash.html
/usr/share/doc/bash/bash.pdf
/usr/share/doc-base
/usr/share/doc-base/bashref
/usr/share/doc-base/bash
/usr/share/info
/usr/share/info/bash.info.gz
/usr/share/doc/bash-doc/bashref.pdf
/usr/share/doc/bash-doc/bashref.html
/usr/share/doc/bash-doc/examples
/usr/share/doc/bash-doc/bash.html
/usr/share/doc/bash-doc/bash.pdf

info

因為有「/usr/share/info/bash.info.gz」這個檔

所以可以執行下面的指令閱讀info文件。

$ info bash