DTEE(1)

πŸ“¦
version 1.1.3 Β· 2 versions
, in nixos 26.05

πŸ’… dtee(1) β€” run a program with standard output and standard error copied to files πŸ’…


πŸ’– NAME πŸ’–

dtee β€” run a program with standard output and standard error copied to files.

Okay bestie, this is the whole dtee(1) situation, and it’s genuinely iconic for anyone who wants their terminal output and their files to eat at the same time. πŸ“

πŸ¦‹ SYNOPSIS πŸ¦‹

dtee [option]... <command> [arguments]...

cronty [option]... <command> [arguments]...

✨ DESCRIPTION ✨

Run command with standard output and standard error copied to files while maintaining the original standard output and standard error in the original order.

So like… your command does its thing, the streams still show up normally, and copies go into files too. Original order stays intact. No cap. πŸ’œ

πŸŽ€ OPTIONS πŸŽ€

πŸ“ Output files πŸ“

Standard streams can be written to any number of specified files, in addition to normal output. Output is not line buffered.

Heads up on that last bit: output is not line buffered, so don’t expect neat little line-by-line flushes. πŸ’…

  • -o <filename>, --out-append=<filename> β€” Append standard output to filename, creating the file if it does not exist.
  • -O <filename>, --out-overwrite=<filename> β€” Copy standard output to filename, truncating and overwriting existing content.
  • -e <filename>, --err-append=<filename> β€” Append standard error to filename, creating the file if it does not exist.
  • -E <filename>, --err-overwrite=<filename> β€” Copy standard error to filename, truncating and overwriting existing content.
  • -c <filename>, --combined-append=<filename> β€” Append standard output and standard error to filename, creating the file if it does not exist.
  • -C <filename>, --combined-overwrite=<filename> β€” Copy standard output and standard error to filename, truncating and overwriting existing content.

βš™οΈ General options βš™οΈ

  • -i, --ignore-interrupts β€” Ignore keyboard interrupt signals (SIGINT). This does not prevent the command being executed (and other processes in the same progress group) from receiving the signal. She’s ignoring the interrupt for herself, not blocking the whole group chat. 😭
  • -q, --cron β€” Operate in cron mode (this is implied when invoked as cronty). Suppresses all output unless the process outputs an error message or has a non-zero exit status whereupon the original output will be written in the original order and the exit code will be appended to standard error. Quiet mode until something goes wrong, then it spills the tea in original order. β˜•

πŸŽ€ Miscellaneous πŸŽ€

  • -h, --help β€” Display usage information and exit.
  • -V, --version β€” Output version information and exit.

πŸ”— SEE ALSO πŸ”—

Full documentation <https://dtee.readthedocs.io/>

πŸ‘‘ Author πŸ‘‘

Simon Arlott

2018-2025, Simon Arlott


πŸ’– That’s the dtee(1) page, bestie β€” dtee version 1.1.3, dated Jun 16, 2025. Slay and stay buffered-ish! πŸ’–

πŸ“¦ where this page comes from