I am learning to write shell script from this tutorial on linuxcommand.org. It says -
Most modern Linux distributions encourage a practice in which each user has a specific directory for the programs he/she personally uses. This directory is called bin and is a subdirectory of your home directory.
I've tried this. But I get the following error-
foobar: command not found
Later in that page, it also says that-
On some distributions, most notably Ubuntu, you will need to open a new terminal session before your newly created bin directory will be recognised.
It means that ubuntu does support this feature. But why isn't it working?
I am on Ubuntu 12.04 LTS.
foobar
script to/bin
?foobar
, notfoobar.sh