8 Quirky Linux Commands That Will Surprise You

8 Quirky Linux Commands That Will Surprise You

Linux is known for its flexibility, power, and the sheer number of commands that can be executed. While most people are familiar with basic commands like , , and , Linux also offers some quirky and fun commands that you might not have come across yet. These commands add an element of surprise and enjoyment to the command line while also performing unique tasks. Here are 8 quirky Linux commands that will definitely surprise you!


1. yes – The Command that Never Stops

The command does one thing – it repeats a string, endlessly. By default, it prints "y" in an infinite loop. While this might sound boring at first, it’s actually useful in automation, especially when responding to prompts in scripts.

This command will keep outputting “I will never stop!” until you stop it manually with . It’s also used in automated scripting for auto-responding to prompts, saving you time!


2. cowsay – Get a Cow to Talk to You

If you like a little fun with your terminal, is the perfect command. It adds a cute ASCII cow that speaks the text you provide. It’s both amusing and charming.

This will output a talking cow with a speech bubble. If you don’t have installed, you can get it with:

The possibilities are endless when it comes to generating humorous messages!


3. sl – The Steam Locomotive

The command is probably the most unexpected one. If you type it by mistake (like typing instead of ), instead of an error, a cute steam locomotive will appear and chug across your terminal screen.

If you don’t have it yet, simply install it:

Now, even your typos can make your terminal experience more fun!


4. rev – Reversing Text

Ever wanted to reverse the text in your terminal? The command reverses the order of characters in each line of text you provide to it. It’s a simple but unique command.

Output:

It can be used creatively for cryptography or just for fun.


5. factor – Break Down Numbers into Prime Factors

Linux even has a command for prime factorization. takes a number and breaks it down into its prime factors. Perfect for math enthusiasts or when you just want to impress people with some quick number theory.

Output:

Now you can easily factorize numbers directly from your terminal!


6. watch – Monitor Commands in Real-Time

The command allows you to run a command repeatedly at a specified interval and view the output live, making it useful for monitoring changes in real-time.

This will print the current date and time every 2 seconds, which can be handy when monitoring a system's status or performance over time.


7. toilet – Create Text Art

If you enjoy ASCII art and want to generate fancy text, is your go-to command. It can turn any input text into stylized, colorful ASCII art. It’s an easy way to add some fun flair to your terminal.

You can install it with:

This will output a large, colorful version of the phrase “Hello, Linux!” in your terminal.


8. espeak – Make Your Terminal Speak

Want your terminal to speak? The command converts text to speech. This command can be useful for accessibility purposes, or you can just have fun listening to your computer say things.

It will audibly announce “Welcome to Linux!” through your system's speakers. It’s a quirky and fun way to interact with your terminal.


Conclusion

Linux commands don’t always have to be serious or technical. With commands like , , and , you can add a bit of humor and fun to your command-line experience. Whether you want to prank a friend with an endless train ride, impress a colleague with some prime factorization, or simply hear your terminal speak, these quirky commands will definitely surprise you. So, the next time you’re at the terminal, give these commands a try and bring a smile to your face!


𝗢𝘂𝗿 𝗦𝗲𝗿𝘃𝗶𝗰𝗲𝘀:

  • Staffing: Contract, contract-to-hire, direct hire, remote global hiring, SOW projects, and managed services.

  • Remote Hiring: Hire full-time IT professionals from our India-based talent network.

  • Custom Software Development: Web/Mobile Development, UI/UX Design, QA & Automation, API Integration, DevOps, and Product Development.

𝗢𝘂𝗿 𝗣𝗿𝗼𝗱𝘂𝗰𝘁𝘀:

Visit Centizen to learn more!

Jérémie Amsellem

💻 Infosec Consultant // Trainer

3mo

Also if you want to learn Linux hands-on without installing anything (for free) I've made just the course for that https://www.hack.courses/linux-and-command-linux-for-beginner-new 🔥

Like
Reply

To view or add a comment, sign in

Others also viewed

Explore topics