IRIX用戶環(huán)境知識講解
這次要來講解下IRIX操作系統(tǒng) 用戶的知識。IRIX操作系統(tǒng)是實現(xiàn)tcpmux的主要提供者,默認(rèn)情況下tcpmux在這種系統(tǒng)中被打開。IRIX用戶的環(huán)境由某些shell起始文件決定。對于C shell用戶,用戶的環(huán)境由/etc/cshrc、用戶主目錄下的.cshrc和.login決定;對于B用戶,則由/etc/profile和用戶主目錄下的.profile決定。
shell起始文件配置用戶的登錄環(huán)境,并且控制subshell的產(chǎn)生。IRIX用戶提供了shell幾種類型:/bin/csh、/bin/sh、/bin/ksh、/bin/bsh、/bin/rsh,詳細(xì)信息請看相應(yīng)的shell幫助。
1)C shell配置文件:
當(dāng)C shell用戶登錄系統(tǒng)時,系統(tǒng)執(zhí)行三個shell起始文件。
A./etc/cshrc
這是一個ASCII文件,它包含可執(zhí)行的命令、設(shè)置適合所有C shell用戶的環(huán)境變量。
- #
- # /etc/cshrc - Default settings for all csh users
- #
- # This is 'sourced' before $HOME/.cshrc, which in turn preceeds $HOME/.login
- # when a csh user logs in or invokes /bin/su with the `-' option.
B.用戶自己的.cshrc
這個文件近似/etc/cshrc,但它保存在用戶主目錄中。.cshrc文件包含適合用戶自己喜好的命令及變量。
C..login
.login是一個可執(zhí)行的文件,隱藏在用戶的主目錄下。.login文件也定制用戶的環(huán)境變量,但它只在用戶登錄時被執(zhí)行。
2)B shell配置文件:
當(dāng)B shell用戶登錄系統(tǒng)時,系統(tǒng)執(zhí)行兩個shell起始文件。
A./etc/profile
這是一個ASCII文件,它包含可執(zhí)行的命令、設(shè)置適合所有B shell用戶的環(huán)境變量。
- #
- # /etc/profile - Default settings for all sh users
- #
- # This script is executed before $HOME/.profile when an sh user logs in
- # or invokes /bin/su with the `-' option.
- #
- # Ignore keyboard interrupts.
- trap "" 2 3
B.用戶自己的.profile
這個文件近似/etc/profile,但它保存在用戶主目錄中。.profile文件包含適合用戶自己喜好的命令及變量。IRIX用戶環(huán)境的知識,我們就講解到這里。希望對大家對IRIX操作系統(tǒng)的學(xué)習(xí)有所幫助。
【編輯推薦】