Command 'route' is available in '/sbin/route'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
route: command not found
不同版本的ubuntu 环境变量文件名称路径不同
1 零时 export PATH=/sbin/:$PATH #添加当前shell生效,关闭者无效
2 sudo nano /home/jack/.bashrc sudo nano ~/.bashrc #该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该文件被读取.
最后行添加
export PATH=/sbin/:$PATH
3 sudo nano ~/.profile
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
fi
在最后上如下代码:
fi
fi
####代表用户要添加的PATH值,如多个中间用冒号(:)隔开。