Skip to content
masterclass Buddy

Linux & Shell · Command

tr

tr translates, deletes, or squeezes characters from standard input and writes the result to standard output. Use character arrays to define the operation.

Last updated

Syntax

tr [ OPTION ]... STRING1 [ STRING2 ]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • sed(1)
  • proc(5)

Source: tr(1) - Linux manual page. Checked 2026-11-03.