You want to run a command, but you don’t want the output filling up your screen.
Redirect the output to /dev/null using >.
For example:
$ ls > /dev/null |
Discussion
This example illustrates the syntax, but is otherwise pretty useless. A more common use is where you’re running a program and the developer has left a lot of trace messages in her code, which you don’t really want to see. The following example hides superfluous output from the find command (see Recipe 3.22).
$ find / -name gemgem.py 2>/dev/null /home/pi/python_games/gemgem.py |
See Also
For more information about redirecting standard output, see Recipe 3.27.