Just launch a new shell:
bash >/dev/null 2>&1
Now you can enter commands blind :) If you want to leave this type of mode: exit
But blind input commands are usually not what you want. Therefore, I would suggest creating a text file, for example script.sh , putting my commands into it:
command1 foo command2 bar
and execute it using:
bash script.sh >/dev/null 2>&1
The output of all the commands in this script will be redirected to / dev / null now
hek2mgl
source share