04-14-2020, 10:30 PM
hi i just created a bin directory in my home folder but bash scripts i put in there cant run for some reason
bash scripts
|
04-14-2020, 10:30 PM
hi i just created a bin directory in my home folder but bash scripts i put in there cant run for some reason
04-14-2020, 10:47 PM
After you create your ~/bin directory, you need to source your .profile by typing in the terminal . .profile
The .profile and the .bashc should be sourced when you open a terminal. However, many Debian-based distributions won't source the .profile when you open a terminal. (I also saw this in a recent Mint 19.3 install). In this case, you can add the following line to the end of your .bashrc: Code: [ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH" Then source the .bashrc with . .bashrc |
« Next Oldest | Next Newest »
|