Files & Text
Files & Text cheat sheets — command-line references with examples.
Command-line tools in the Files & Text category. Pick a command from the list.
- awk — Field-Based Text Processing and Reporting
- chmod — Manage File Permissions
- chown — Change File Owner and Group
- column — Format Input into Columns and Tables
- cp — Copy Files and Directories
- cut — Extract Fields, Characters and Bytes from Text Lines
- diff — Compare Files and Directories
- envsubst — Substitute Environment Variables in Text
- file — Determine File Type by Content
- find — Search Files and Directories in a Directory Tree
- fzf — Interactive Command-Line Fuzzy Finder
- grep — Search Text with Regular Expressions
- head — Show the First Lines of Files
- jq — Process JSON on the Command Line
- less — Browse Files in the Terminal with the Pager
- ln — Create Hard Links and Symlinks
- ls — List Directory Contents
- mc — Midnight Commander, the Visual Terminal File Manager
- mkdir — Create Directories
- mktemp — Safe Temporary Files and Directories
- mv — Move and Rename Files
- nano — The Simple Terminal Text Editor
- paste — Merge Lines Side by Side
- regex — Understand and Apply Regular Expressions
- rename — Batch-Rename Files with Patterns
- rm — Delete Files and Directories
- sed — Stream Editor for Text Transformation
- sort — Sort Lines of Text Files
- split — Break Files into Smaller Pieces
- stat — Detailed File and Filesystem Information
- tail — Show the End of Files and Follow Logs
- tee — Display Output and Write It to Files at Once
- touch — Create Files and Set Timestamps
- tr — Translate, Delete and Squeeze Characters
- uniq — Filter and Count Duplicate Lines
- vim — The Modal Text Editor for Efficient Editing
- wc — Count Lines, Words and Bytes
- xargs — Build Command Lines from Standard Input
- yq — Process YAML and JSON on the Command Line