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.
我有几个 perl 程序,我想让这个程序作为内置命令。这意味着我想用来program argu1 argu2替换perl program argu1 argu2.
program argu1 argu2
perl program argu1 argu2
但是我想让这个命令只能由我使用。我怎样才能做到这一点 ?
谢谢
通过键入以下命令将该脚本文件添加到 ~/.bashrc 中的 PATH 中:
PATH=$PATH:<script-directory-here>