5 Hidden Linux Commands to Double Your Daily Task Efficiency
If you’ve spent some time in the Linux terminal, you may have fallen in love with commands like <span>ls</span>, <span>grep</span>, or <span>cat</span>. They are essential tools for daily life in Linux.
However, Linux has many powerful commands that most people have never heard of.
Some of these can save you a lot of time, automate tedious tasks, or make your daily tasks easier.
In this article, I will show you 5 hidden Linux commands that can make your daily work in the terminal faster and more enjoyable.
Let’s see what they can do! 🚀
🔹 1. <span>tldr</span> – Simplified Manual Pages
Have you ever typed <span>man tar</span> and faced a huge block of text, then thought:
“I just want to extract a file, not read a novel…”
You’re not alone.
This is where <span>tldr</span> comes in — it stands for “Too Long; Didn’t Read”.
It’s a command-line lifesaver that provides quick, practical examples of how to use commands.
No more drowning in flags and syntax — just what you actually need.
How to Use It
Open your Linux terminal and type:
tldr [command]
For example, try this:
tldr tar
It won’t throw a 10-page paper at you, but will give you simple, clear examples like:
# Create a .tar archive file
tar cf archive.tar file1 file2
# Extract a .tar.gz archive file
tar xzf archive.tar.gz
# List the contents of a tar file
tar tf archive.tar
See? Straight to the point.
You get exactly what you need — no fluff, no confusion.
Manual pages are great for in-depth reading, but when you want to get things done quickly, <span>tldr</span> is your new friend. 🧠⚡
2. <span>bat</span> — Like <span>cat</span>, but Cooler 🦇
<span>cat</span> is great for viewing files, but <span>bat</span> makes it prettier.
It shows syntax highlighting, line numbers, and even supports Git!
bat my_script.py
Reasons you’ll love it:
- Syntax highlighting for code
- Displays line numbers
- Git integration for quick diffs
This is a small upgrade that makes viewing code in the terminal surprisingly enjoyable.
How to install it:
sudo apt install bat
3. timeout — Automatically Stop Long-Running Commands
The <span>timeout</span> command lets you run a command for a specified time.
If the time runs out, <span>timeout</span> will kill the command, so your terminal (script) won’t be stuck there forever.
Example: Stop a ping Process
timeout 5s ping google.com
This command pings Google, but only for 5 seconds, then automatically stops. The duration can be in seconds (5s), minutes (2m), hours (1h), or days (1d).
Limit Script Runtime
timeout 30s ./myscript.sh
If <span>myscript.sh</span> doesn’t finish within 30 seconds, it will be terminated.
The <span>timeout</span> command is simple yet powerful; once you get used to it, you’ll start using it in various scripts and tasks.
4. ncdu — Easily Find Large Files
The <span>ncdu</span> tool is like <span>du</span>, but with a text-based interactive interface that makes it easy to browse disk usage and delete junk files on the spot.
It’s fast and user-friendly in the terminal, even within the terminal.
How to Use It
Type in the terminal:
ncdu
This will scan your current directory and display a navigable list showing all disk space usage.
After a quick scan, you’ll see something like this:
--- /home/user ------------------------
. 3.1 GiB [##########] Downloads
1.2 GiB [###.......] Videos
800.0 MiB [##........] Projects
450.0 MiB [#.........] Documents
...
Seamlessly browse your folders using the up and down arrow keys! When you’re ready to dive deeper, just press Enter to enter a folder.
Also, don’t forget — if you need to tidy up, you can easily delete files or entire folders directly from the ncdu interface. Happy organizing!
Analyze a Specific Folder
ncdu /path/to/project
The <span>ncdu /path/to/project</span> command scans the specified folder and accurately shows how much space each file and subfolder is using.
5. at — Schedule Tasks for Later Execution
Sometimes you want your computer to perform a task, but not right now — like running a backup at 11 AM when you’re not around. This is where <span>at</span> comes in.
You just need to tell it what command to run and when, and it takes care of the rest. You don’t have to sit there watching the clock.
It’s different from <span>cron</span>, which is used for recurring tasks. <span>at</span> is for one-time tasks.
Once you’ve scheduled it, your system will remember and run it automatically at the appropriate time. No reminders, no clock-watching, nothing.
How to Use It:
Suppose you have a script named <span>backup.sh</span> that you want to run at 11 AM. You can do it like this:
echo "./backup.sh" | at 11:00
Boom! Your backup script will run automatically at 11 AM. It’s like setting a reminder, but the subject is your computer.
Here’s what’s happening:
<span>echo "./backup.sh"</span>— This tells your computer what command you want to run.- Pipe
<span>|</span>— This sends the command to<span>at</span>. <span>at 11:00</span>— This schedules it to run at exactly 11 AM.
Once you hit Enter, <span>at</span> will confirm that the task has been scheduled.
You can even list all scheduled <span>at</span> jobs:
atq
If you need to delete a task before it runs, you can do it like this:
atrm <job_number>
Basically, <span>at</span> is like giving your computer a little “to-do list”.
You tell it what to do and when to do it, and it takes care of the rest. No babysitting, no reminders, no pressure.
Perfect for one-time tasks you want to happen at a specific moment.
Final Thoughts
Linux is full of small yet powerful commands that can save you time and make your life easier.
So, here are 5 Linux commands you may have never heard of, but they will definitely make your life easier.
Give them a try and see how much simpler your workflow can become.
Thank you!