Page History
...
Code Block |
---|
bjobs bjobs -u dubrovin bhosts psnehfarm bhosts psfehfarm bqueues psnehhiprioq list of queues: psnehhiprioq psfehiprioq psnehprioq psfehprioq psanaq psnehq psfehq |
Re-direct output in file
All POSIX operating systems have 3 streams: stdin, stdout, and stderr.
stdout is the primary output, which is redirected with >
, >>
, or |
.
Code Block |
---|
command > file.txt
command >> file.txt # to append
command >& file.txt # re-direct stdout and stderr
command 1>& file.txt # 1-stdout
command 2>& file.txt # 2-stderr
command 2> /dev/null # silence error |
Overview
Content Tools