「source」と「sh」コマンドの違いは? カレントディレクトリにあるシェルスクリプトを実行する際、ディレクトリにパスが通っていて、かつファイルに実行権限があるならば次のような方法があると思います。 ① source スクリプトファイル名 ② sh スクリプトファイル名 ③ . スクリプトファイル名 ④ スクリプトファイル名 ①と②の違いって何でしょうか? ①、③、④の違いはsourceコマンドを実行する際の条件(例:パス通っている、実行権限がある等々)によるものと「LPICレベル1」j教科書に書いてあったのですが、②との違いが分かりません。 ①、③、④は/bin/bashで実行 ②は/bin/sh(linuxでは/bin/bashへのシンボリックリンク)で実行 という事なのでしょうか?