Linux One Command Per Day
I started using Linux as my operating system many years ago — I believe it was in the early 2000s.
Over the years, I’ve used several distributions, from Mandrake Linux to Ubuntu and Debian.
Currently, my favorite is Manjaro Linux with the KDE desktop environment.
For most of this time, I used the default Bash shell, but for the last 2–3 years I’ve been using Oh My Zsh — partly because I also have a Mac, and I installed it there as well.
Most of the commands I know in the terminal I originally studied many years ago.
That’s why I’ve added 5 minutes to my daily routine to either review a Linux command or learn a new one.
I’m doing the same for Oh My Zsh aliases and functions — with the help of ChatGPT.
Below, I’ve included the commands in a table.
Linux One Command Per Day
Command | Description | Examples |
---|---|---|
tldr |
Get command description. |
|
bat |
Advanced alternative to cat , with syntax highlighting and line numbers. Useful for reading code or config files. |
|
cat |
Displays the contents of one or more files, or concatenates them. Useful for quick viewing or merging files. |
|
grep |
Searches for a pattern in files or input. Supports regular expressions. Use -i for case-insensitive search. |
|
du |
Displays disk usage of files and directories. Add -h for human-readable sizes and -s to summarize. |
|
xargs |
Reads input and passes it as arguments to another command. Useful in pipelines or when dealing with long lists. |
|
find |
Searches for files and directories based on name, type, size, permissions, and more. Very powerful for recursive search and cleanup. |
|
rsync |
Efficiently synchronizes files and directories. Ideal for backups and remote copies. |
|
ncdu |
Interactive disk usage viewer. Great for finding large files and folders quickly. |
|
tmux |
Terminal multiplexer: split windows, manage sessions, run processes in background. |
|
fzf |
Fuzzy finder to search files, history, directories interactively. Super fast. |
|
z |
Jump to frequently used directories. Learns your habits over time. |
|
cut |
Extracts columns or characters from text. Useful for processing structured output. |
|
sort |
Sorts lines of text alphabetically or numerically. Combine with uniq for cleanup. |
|
uniq |
Removes or identifies duplicate lines. Input should be sorted for best results. |
|
awk |
Powerful text processor and mini language for field-based data manipulation. |
|
head |
Displays the first lines of a file. By default, shows the first 10 lines. |
|
tail |
Displays the last lines of a file. Great for monitoring logs in real time. |
|
wc |
Counts lines, words, and characters in a file or input. Use with pipes or files. |
|
basename |
Extracts the filename from a full path. Useful in scripts to isolate filenames. |
|
dirname |
Extracts the directory path from a full file path. Often used in shell scripts. |
|
tee |
Reads from standard input and writes to both standard output and a file. |
|
diff |
Compares two files line by line. Great for spotting changes or debugging configs. |
|
chmod |
Changes file or directory permissions using symbolic or numeric modes. |
|
ps |
Displays information about active processes. Use aux for full details. |
|
kill |
Sends signals to processes by PID. Typically used to stop or restart processes. |
|
which |
Shows the full path of the executable that would run for a given command. |
|
env |
Displays environment variables or runs a command with a modified environment. |
|
Comments
Post a Comment