Linux Shell Script (一) -- Basic Concepts

1. Run the shell

  $ sh script.sh # Assuming script is in the current directory.
  Or:
  $ sh /home/path/script.sh # Using full path of script.sh.

 

   #讲脚本改为可执行模式

    $ chmod a+x script.sh

 

   $ ./script.sh #./ represents the current directory
   Or:
   $ /home/path/script.sh # Full path of the script is used

 

 

posted @ 2013-04-25 14:39  Master HaKu  阅读(179)  评论(0编辑  收藏  举报