ls > /dev/null 2>&1
this throws away output from the command
ls > /tmp/tmpfile.ls.$$ &
this would run a process in the backround
and return the prompt back to you immediately.
The results will be written to the tmp file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.