kormat@x1c:~(0:0)$ printf '#!/bin/bash\necho hello\n' > bin/hello kormat@x1c:~(0:0)$ chmod +x bin/hello kormat@x1c:~(0:0)$ which hello /home/kormat/bin/hello kormat@x1c:~(0:0)$ hello hello kormat@x1c:~(0:0)$ rm bin/hello kormat@x1c:~(0:0)$ which hello kormat@x1c:~(0:1)$ hello bash: /home/kormat/bin/hello: No such file or directory