I wrote a new text file in /bin named ram which contains:
watch -n 1 free -h
and a file sen:
watch -n 1 sensors
in the same folder, in order to avoid typing
watch blahblahblah...
every time.
Also, I changed permissions of these two from
-rw-r--r--
to
-rw-r--r-x
and achieved my goal. It worked even after reopening shell, i.e. then I could type ram instead of watch -n 1 free -h
But, problem was encountered after I tried the same procedure for
cd /home/myname/Downloads/
and new text file saved in /bin and named dow, same with permissions.
This time dow does nothing in terminal, even not showing any message.
I tried saving the same file in /usr/bin, but again terminal does nothing and my working directory doesn't change.
How is this possible?