I used a shell script which I wanted to clear the terminal and print network speed every second. I realised that the commands “clear” and “reset” do not exist in x64 !
What I did was to create a file /usr/bin/clear (don’t forget to chmod it 755) and write in it:
Works, but needs root to do and is system-wide. Also, aliases don’t get evaluated when scripting.
IMO, such aliases should go in ~/.profile or ~/.bash_profile, and scripts like clear.sh into something like ~/.local/bin which is added to the PATH variable.