Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
tr
Translate or delete characters
Syntax
tr [OPTION]... SET1 [SET2]Common Options
-dDelete characters-sSqueeze repeated characters-cUse complement of SET1-tTruncate SET1 to SET2 lengthCommon Examples
tr 'a-z' 'A-Z' < file.txtConvert to uppercase
tr -d '0-9' < file.txtDelete all digits
tr -s ' ' < file.txtSqueeze multiple spaces
echo 'hello' | tr 'a-z' 'A-Z'Translate characters
tr -d '\r' < win.txt > unix.txtRemove Windows carriage returns
tr -c 'a-zA-Z0-9' '_' < file.txtReplace non-alphanumeric chars
Related Tools
More Code & Dev Tools
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
HTML Formatter
Format and minify HTML online. Beautify HTML code or compres...
Color Extractor
Extract colors from images online. Get dominant colors and c...
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Port Checker
Check if a port is open online. Test port availability and c...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...