rev
text processingLinux/Unix
The rev command is one of the most frequently used commands in Linux/Unix-like operating systems. rev Reverse lines of a file or standard input
Quick Reference
Command Name:
rev
Category:
text processing
Platform:
Linux/Unix
Basic Usage:
rev [options] [arguments]
Common Use Cases
Syntax
rev [file...]
Options
Option | Description |
---|---|
--help |
Display help message and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the rev
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
rev file.txt