unusual-linux-commands

Unusual linux commands can be very handy in several cases. Here are some of them.

Repeat the last typed command:

!!

 

Display file-content like cat, but from upside down, can be achieved with tac (reverse cat)

tac myfile.txt

 

Like to lookup in a dictionary file? Use look. Everything whats starts with the passed word will be shown.

look car

 

Display time / date in bash screen on right upper corner. Continously!

while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &

 

Show all buildin commands

compgen -b

 

Show all commands you can run

compgen -c