天天看點

SHELL _01

Shell腳本的執行,先找環境變量ENV,如:

 1.  cat  /etc/profile         //全局環境變量,腳本執行之前,先找這個環境變量

 2. cat  /etc/.bashrc

 3.     sh   test.sh

     /bin/bash   test.sh

        source     test.sh

            .          test.sh    

source  或者  點(.)  執行一個腳本更加強大,可以擷取腳本中自定義的内容。

可以檢視   /etc/init.d/nfs

本文轉自 曾國藩_6868 51CTO部落格,原文連結:http://blog.51cto.com/8184069/1737173