Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux hide command output

command > /dev/null 2>&1

Explanation:
	1. command > /dev/null: redirects the output of command(stdout) to /dev/null
	2. 2>&1: redirects stderr to stdout, so errors (if any) also goes to /dev/null
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #linux #hide #command #output
ADD COMMENT
Topic
Name
9+8 =