GO KALI FREE
Search Commands

tr Linux Command

Translates, deletes, or squeezes characters from standard input.

What does tr do?

Translates, deletes, or squeezes characters from standard input.

Syntax

tr [options] set1 set2

Practical example

echo 'hello' | tr 'a-z' 'A-Z'

Related Search Commands

cut

Extracts specific columns/fields from each line of a file.

xargs

Builds and executes command lines from standard input (useful with pipes).

uniq

Reports or filters out repeated lines in a sorted file.

find

Searches for files and directories in a directory hierarchy by name, type, size, etc.

sort

Sorts lines of text files alphabetically or numerically.

grep

Searches for patterns (text or regex) inside files and prints matching lines.