Linux中可自动补齐命令

刚添加的软件包,比如说unrar命令,在运行时必须./unrar,而不能unrar这样运行


这时可以用cp命令,加上root权限

sudo cp unrar  /usr/local/bin/

此时可以直接unrar运行