10 Little-Known Linux Commands That Boost Your Productivity
Discover ten obscure yet powerful Linux command‑line tools—look, rev, tac, yes, nl, column, shuf, comm, chrt, and watch—that can streamline workflows, simplify text processing, enhance monitoring, and give developers and sysadmins deeper control over their systems.
Linux offers great flexibility and control, and many useful utilities remain hidden from most users. Learning these lesser‑known commands can improve efficiency and make you a more proficient command‑line user.
1. look – fast dictionary lookup
The look command performs a binary search on a sorted file (usually a dictionary) and prints all lines that start with a given string, making it handy for autocomplete tools, word games, or term verification.
look pro2. rev – reverse characters in each line
revreverses the characters of each input line. It is useful for tasks such as encrypting text transformations or palindrome algorithms.
echo "Linux" | rev3. tac – reverse cat
While cat displays file contents from top to bottom, tac (cat spelled backwards) prints lines in reverse order, which is handy for reading logs from newest to oldest without using tail -r.
tac access.log4. yes – repeat output generator
yesrepeatedly outputs a string until interrupted. It is often used in automation scripts to automatically confirm prompts, such as feeding yes into a package‑installation command.
yes | sudo apt install mypackage5. nl – number lines
nlis a more feature‑rich version of cat -n. It adds line numbers with powerful formatting options, supporting logical page delimiters and customizable line‑number styles.
nl file.txt6. column – format output into columns
columnconverts text data into aligned columns, improving readability, especially for CSV or tabular data.
cat data.txt | column -t -s,7. shuf – shuffle lines randomly
shufrandomizes the order of input lines, useful for creating random playlists, testing with unpredictable data, or in shell‑based games and statistical sampling.
shuf list.txt8. comm – compare two sorted files line by line
commcompares two pre‑sorted files line by line, outputting three columns: lines unique to the first file, lines unique to the second, and lines common to both. It is ideal for synchronizing data sets or identifying increments.
comm file1.txt file2.txt9. chrt – control real‑time scheduling policy
For performance tuning, chrt adjusts a process's real‑time scheduling policy. Combined with tools like ps or top, it provides powerful control over process priority.
sudo chrt -f 99 ./my_program10. watch – execute a program periodically
watchruns a command at regular intervals, refreshing the terminal view. It is perfect for monitoring resource usage, service health, or file changes in near‑real‑time. watch -n 2 df -h Mastering these commands expands the Linux toolbox, helping developers, administrators, and enthusiasts work more efficiently.
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.
dbaplus Community
Enterprise-level professional community for Database, BigData, and AIOps. Daily original articles, weekly online tech talks, monthly offline salons, and quarterly XCOPS&DAMS conferences—delivered by industry experts.
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.
