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

转载于:https://www.cnblogs.com/davidgu/archive/2013/04/25/3042503.html

猜你喜欢

转载自blog.csdn.net/weixin_34292402/article/details/93802867
今日推荐