tee

The tee command reads from stdin and writes to both stdout and one or more files.

df -h | tee disk_usage.txt

References