1. sl
Thanks to Asdasd, I discovered “sl”. An incredibly useless but very necessary program that just shows a train in ASCII art going through your terminal. Maybe one of the most appealing commands of this top ten.2. pi
Credit goes to cameronhorsburgh for bringing this one up. “pi” displays an approximation of PI, useful if you are making some calculation, I guess. The syntax is:pi [number of digits to display]
3. dog
Coats was the one to bring this one up. “dog” is an alternative to “cat” (see the humor?), as it uses the same syntax to display a text stream into the console. You will probably have to install it as it is not a command offered by default, but when you do, I invite you to take a look at the manual page.4. vdir
“vdir” is useless in that it is a redundancy. Its main function is to list the content of a directory, displaying the name of the files, the permissions, the dates of modification, the sizes, etc. However, all of this can be done via the good old command “ls” and its composite likels -l
5. clear
“clear” is also a redundancy. With this command, you will erase the lines from the terminal and “clear the screen.” But anyone adept with the console will save time by using the shortcut “Ctrl+l”, which does exactly the same thing.6. ul
An interesting command, “ul” can be used to underline characters in the terminal. I still have not figured it out completely but I know that, for example, it will transformecho $'hello w\b_o\b_r\b_l\b_d\b_ ' | ul
7. w
You can say whatever you want about “w”, but it is to my knowledge the shortest command you can find by default on your machine. And I think that it therefore deserves to be in our list just for that. Surprisingly, “w” allows you to see information about the current users, like their name, their login time, etc.8. filters
A moore’s contribution: filters is a set of tools that transforms text to give it some phonetic accent. “man talkfilters” will give you the list of the possible accents. But as an example,echo "make tech easier is cool" | fudd
9. fortune mods
Last time, I presented to you the famous fortune command which gives you a (relatively) short and random geek sentence each time you call it. However, if you can add your own fortunes to the database, it is also possible to download extensions, or mods, which add fortunes from a specific source, like Star Wars, the Chuck Norris facts, different languages, Matrix, Futurama, Calvin and Hobbes, and more. Install the mod that you want and dofortune [name of the mod]
fortune chucknorris
10. snow
Finally, a little script to end the top ten. I could not stop myself from sharing the snow.sh script from myh3r3.com which creates little snowflakes falling into your terminal. Copy-paste the code into a text file, name it "snow.sh", make it executable, and launch it in a terminal to admire.#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
function move_flake() {
i="$1"
if [ "${snowflakes[$i]}" = "" ] || [ "${snowflakes[$i]}" = "$LINES" ]; then
snowflakes[$i]=0
else
if [ "${lastflakes[$i]}" != "" ]; then
printf "\033[%s;%sH \033[1;1H " ${lastflakes[$i]} $i
fi
fi
printf "\033[%s;%sH*\033[1;1H" ${snowflakes[$i]} $i
lastflakes[$i]=${snowflakes[$i]}
snowflakes[$i]=$((${snowflakes[$i]}+1))
}
while :
do
i=$(($RANDOM % $COLUMNS))
move_flake $i
for x in "${!lastflakes[@]}"
do
move_flake "$x"
done
sleep 0.1
done
Conclusion
First, I want to thank you all for your comments on the previous article. I tried to put here a synthesized version of what you reported in order to share it with more people. Of course, this list is still not complete, and even if I personally doubt that it will ever be, I still invite you to continue to share.So again, if you can think of more, or if you have an example in mind of when these commands become handy, please leave us a comment.
......................................
