2-Minute Linux Tips
Learn how to use a host of Linux commands in these 2-minute video tutorials from Sandra Henry-Stocker, author of the Unix as a Second Language blog.
How to Use the rev Command in Linux (Reverse Text in Terminal!)
Overview
In this quick Linux tip, Sandra Henry-Stocker (author of the “Unix as a Second Language” blog on NetworkWorld) shows you how to use the rev command — a simple but fun tool that reverses text in your terminal.
💡 Learn how to:
Reverse strings and sentences using rev
Reverse the output of other commands (like cal)
Reverse a reversal — just for fun!
📌 Example:
bash
Copy
Edit
echo "All’s swell that ends swell" | rev
Whether you're exploring command-line tools or just need a quick trick to impress your fellow Linux users, this one's for you.
👇 Got questions or suggestions? Drop a comment below!
👍 Like, 💬 Comment, 🔁 Share, and 🔔 Subscribe for more Linux tips!