Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この回答に従って、次のように Ubuntuでシステム全体gnから/opt/gnアクセスできるPython スクリプトを作成しました。Terminal
gn
/opt/gn
Terminal
PATH=${PATH}:/opt/gn
ただし、を再起動Terminalすると、システム全体でスクリプトを実行できなくなります。上記のコマンドを再入力する必要があります。
PATHの最後の行にそれをコピーしようとしました~/.profileが、そのようには機能しません。
PATH
~/.profile
スクリプトを永続的に実行する方法は?