快速提问。编译程序后,我总是必须通过在名称前加上 ./ 来明确告诉它从当前目录运行。例如$ ./testprog -argument1
$ ./testprog -argument1
有没有办法设置某种别名,允许我简单地通过说来调用它$ testprog -argument1,基本上允许我从任何位置运行程序?
$ testprog -argument1
shell bash path
bash ×1
path ×1
shell ×1