Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bash scripts
hi i just created a bin directory in my home folder but bash scripts i put in there cant run for some reason
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:
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"

Then source the .bashrc with . .bashrc
Rick Romig
"It's never wrong to introduce a child to Linux."
Rick's Tech Stuff

Forum Jump:

Users browsing this thread: 1 Guest(s)