Are there any games which can train people to learn terminal commands? [closed]
Solution 1:
You can add the following line (command) at the end of your ~/.bashrc
file:
echo "Did you know that:"; whatis $(ls /bin | shuf -n 1)
Every time you open the terminal you will learn something about a random command.
If you want some fun, you can use cowsay
"utility". To install it, run this in terminal:
sudo apt-get install cowsay
Then add the following line at the end of your ~/.bashrc
file:
cowsay -f $(ls /usr/share/cowsay/cows | shuf -n 1 | cut -d. -f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1)
Or you can add the above line as alias in ~/.bash_aliases
. I added:
alias ?='cowsay -f $(ls /usr/share/cowsay/cows | shuf -n 1 | cut -d. -f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1)'
Whenever you get bored, you can type in terminal: ?
(followed by Enter). It's like playing dice by yourself.
Solution 2:
I used to play with whatis
. It's not exactly a game, but it's a relatively easy way to learn.
For example, type whatis sudo apt-get update
and it returns:
Before I execute any command, I hit it with whatis
first. I learn what I'm going to do, then I will do the command with confidence.
If whatis
doesn't provide much information or if it's unclear to me, I will go to and read the man
.
For example, man sudo
.
Google gives you so much info here, sources inside Ask Ubuntu and outside. Here, LMGTFY: best way to learn terminal commands on Ubuntu
Solution 3:
Yes, Terminus is once such game that will help. There is a live version here, and the code is on github. It's a neat idea, although I rather wish the code was more easily extensible.