Update bash.md

Add both stdout and stderr to null
This commit is contained in:
X3ro 2018-05-10 11:32:08 +02:00 committed by GitHub
parent 810ae09b4e
commit fe75136404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ python hello.py >> output.txt # stdout to (file), append
python hello.py 2> error.log # stderr to (file)
python hello.py 2>&1 # stderr to stdout
python hello.py 2>/dev/null # stderr to (null)
python hello.py &>/dev/null # stdout and stderr to (null)
```
```bash