📅  最后修改于: 2022-03-11 15:00:17.528000             🧑  作者: Mango
you can modify the PATH environment variable in your .bashrc file and use the “source” command in order to refresh your current Bash environment.
$ sudo nano ~/.bashrc
export PATH=":$PATH"
Exit the file and source your bashrc file for the changes to be applied.
$ source ~/.bashrc
$ echo $PATH
/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games