rus*_*ush 10
似乎alias是你需要的。您可以指定任何单词作为别名并设置执行单词时将执行的内容。
alias newcommand='/path/to/your/command'
Run Code Online (Sandbox Code Playgroud)
你可以把它放在你的 ~/.shellrc (其中 shell 是你的 shell,所以bash它会是~/.bashrc),它在启动后可用。
欲了解更多信息,请看这里。
Create a symbolic link to your file, and place it in a suitable PATH'd directory, eg $HOME/bin or whatever.
ln -s "/path/to/my-file" "$HOME/bin/my-file"
Run Code Online (Sandbox Code Playgroud)