In bash, calling foo would display any output from that command on the stdout.
foo
Calling foo > output would redirect any output from that
foo > output
tee is perfect for this, but this will also do the job
ls -lr / > output | cat output