Text and processing
The rev command
Reverses the character order of each line. Fun and useful for some text tricks.
Syntax
rev [archivo]Copy-ready examples
$ echo hola | revReverse a wordYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It reverses within each line, not the order of the lines.
FAQ
What if I want to reverse the lines?
That is what tac is for.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course