LoginSignup
136
118

More than 5 years have passed since last update.

○○.shを./○○.shで実行できるようにする

Posted at

シェルスクリプトを書いて実行するとき
sh hello.sh
にようにコマンドを打てば実行ができる

chmod +x hello.sh
でファイルに実行権限を与えてあげると
./hello.sh
のように一つのコマンドで実行することができる。

【参考】
http://itpro.nikkeibp.co.jp/article/COLUMN/20060228/231019/

136
118
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
136
118