10 Essential Linux Commands Every Developer Should Master
This article shares ten lesser‑known but highly useful Linux commands—ranging from file inspection to process management—explaining their purpose, common use cases, and example invocations, helping developers work more efficiently on Linux or macOS terminals.
As a software engineer, learning Linux proved to be one of the best investments; understanding the operating system you rely on daily turns small tricks into powerful capabilities over time.
The following ten commands are practical, work on both Linux and macOS, and can greatly improve everyday development workflows.
10. file
Displays information about a specified file, such as image dimensions. file logo.png Example output:
> PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced9. iotop, powertop, nethogs
These utilities help you monitor what’s happening inside a Linux system: iotop – sorts processes by disk write activity and shows frequency. powertop – lists processes by power consumption, useful when you cannot charge your laptop. nethogs – displays processes sorted by network traffic.
8. tee
teeredirects program output so you can view it and save it simultaneously, for example adding a new entry to /etc/hosts:
echo "127.0.0.1 foobar" | sudo tee -a /etc/hosts7. pidof, kill and pkill
These three commands let you control running programs: pidof prints the process ID(s) of a running program, e.g., pidof nginx.
Use the PID with kill to terminate a process, e.g., kill -USR2 $(pidof nginx). pkill is a shortcut to kill processes matching a pattern, e.g., pkill -f nginx.
6. tmux
If you haven’t installed tmux, do so now; it is a powerful terminal multiplexer and session manager.
5. tree
Lists directory contents in a tree‑like format. A concise option to show only directories is:
tree -d4. find
When searching through dozens of files, find is invaluable. Examples:
List all CSS files (including subdirectories): find . -type f -name "*.css" List all CSS or HTML files:
find . -type f \( -name "*.css" -or -name "*.html" \)3. htop
A colorful, interactive process monitor with useful shortcuts:
\Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
ITPUB
Official ITPUB account sharing technical insights, community news, and exciting events.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
