Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bash scripts
#1
hi i just created a bin directory in my home folder but bash scripts i put in there cant run for some reason
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)