For definitions, see https://github.com/GradedJestRisk/linux-training/wiki/bash#file-descriptors
file descriptors
stdin, stdout, and stderr
https://unix.stackexchange.com/questions/400849/echo-or-print-dev-stdin-dev-stdout-dev-stderr
Copy standard input to standard output : cat
cat
Output (concatenate) file then standard input : cat /path/to/file -
cat /path/to/file -
You can pipe between commands using | (pipe), eg. a | b
|
a | b
You can redirect between commands using > (angle bracket), eg. a > b
>
a > b
You can append to a file using >> (shif-right), eg. a > b
>>
tee writes (buffered):
tee
'sponge' writes (unbuffered) :
There was an error while loading. Please reload this page.