You will need to alias watch as well for this to work. It needs space around the command, i.e. alias watch='watch ' and after the space it is expecting the next part to be an alias as well.
So, we will create an alias with the -n in it as well. Since you are doing every 2 seconds create a new alias to watch every 2 seconds.
You will need to alias
watch
as well for this to work. It needs space around the command, i.e.alias watch='watch '
and after the space it is expecting the next part to be an alias as well.So, we will create an alias with the
-n
in it as well. Since you are doing every 2 seconds create a new alias to watch every 2 seconds.Then you would just run it as
Hope this helps!