在终端中执行脚本


0

因此,我不想导航到脚本的位置并运行./script.sh,而是希望能够从任何地方键入“ script”并运行该脚本。我认为可以通过将脚本放在/ usr / bin或/etc/init.d中来完成吗?在这种情况下,如果我没有通过计算机的root访问权限,该怎么办?/ home / me中是否有个人目录,我可以在其中放置脚本来实现此目的?

运行Debian。

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.