Here are some interesting Linux terminal commands that you probably
didn't know about.
history
This command will give you a history of the last commands have been. On
my system it shows the last 2000 commands typed into the terminal.
history x
This will show the last x number of commands typed into the terminal.
history | grep command
With this command, you can search for something like 'ping', by using:
history | grep ping
history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort ΓÇôn
This command will give you a sorted list of frequent commands with the number
of times each one has been used.
(https://vitux.com/how-to-see-the-termina-commands-you-use-most-on-linux/)
There are also a bunch of fun programs that can be obtained through the different repositories. Here is a short list of ones that I've found:
sl
We can all admit to incorrectly typing the 'ls' command in the terminal. It's reminiscent of our DOS days, and typing idr instead of dir. Well,
the 'sl' program will show an animated ascii steam train chugging across
the screen.
fortune
I think anyone who has ever used Linux knows about this one. Just type in ./fortune, in the terminal, and it will give you your fortune.
cowsay
Cowsay is another one that most people know about already. I like to combine fortune and cowsay with the 'fortune | cowsay' to get a fun fortune.
_________________________________________
/ You're working under a slight handicap. \
\ You happen to be human. /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
boxes (apt install boxes)
This is another fun one. It will take whatever text you give it, and put it into a text box from the terminal. Just use the pipe to redirect it, such as: 'cat greeting.txt | boxes -d diamonds -a c'
/\ /\ /\
/\//\\/\ /\//\\/\ /\//\\/\
/\//\\\///\\/\//\\\///\\/\//\\\///\\/\ //\\\//\/\\///\\\//\/\\///\\\//\/\\///\\
\\//\/ \/\\//
\/ \/
/\ I'm wishing you all a /\
//\\ joyous holiday season //\\
\\// and a Happy Gnu Year! \\//
\/ \/
/\ /\
//\\/\ /\//\\ \\///\\/\//\\\///\\/\//\\\///\\/\//\\\//
\/\\///\\\//\/\\///\\\//\/\\///\\\//\/
\/\\//\/ \/\\//\/ \/\\//\/
\/ \/ \/
or 'echo "I am a dog" | boxes -d dog -a c'
__ _,--="=--,_ __
/ \." .-. "./ \
/ ,/ _ : : _ \/` \
\ `| /o\ :_: /o\ |\__/
`-'| :="~` _ `~"=: |
\` (_) `/
.-"-. \ | / .-"-.
.---{ }--| /,.-'-.,\ |--{ }---.
) (_)_)_) \_/`~-===-~`\_/ (_(_(_) (
( I am a dog )
) ( '---------------------------------------'
figlet (apt install figlet)
This is one that's been around for awhile as well. It will take any text
you send it, and print it to the screen in a banner type font. Here's an example:
echo "Hello world" | figlet
_ _ _ _ _ _
| | | | ___| | | ___ __ _____ _ __| | __| |
| |_ |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` |
| _ | __/ | | (_) | \ V V / (_) | | | | (_| |
|_ |_\___|__|\___/ \_/\_/ \___/|_ |_\__,_|
cmatrix (apt install cmatrix)
This one will turn your computer monitor into one of the monitors from the movie Matrix. You will see the green letters falling from the top. There
are even options to change the color, speed, etc. This can even be set up
as you screensaver.
The last one I'll tell you about, was probably very popluar back when movies such as Mission Impossible first came out. This one will make your screen look as though you are a Hollywood hacker. One word of caution with this one. Turn your speakers down. There is delayed audio that is very loud!
This one is called hollywood. (apt install hollywood)
---
|03B|09lack |03P|09anther|03(|09RCS|03)|07
--- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
* Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
Some of these are obviously not going to work unless you install said package and the commands to run them are wrong.
One of my favorite is the paste command which takes two lists and join them together line by line. Like taking a list of IPs and a list of hostnames and joining the two.
tac is similar to cat but displays a file in reverse, line by line.
units if installed will convert between hundreds of different types of distance, weights, measurements and the like.
units if installed will convert between hundreds of different types of distance, weights, measurements and the like.
Opening a terminal is quicker than opening a browser and googling it.
I still open up a terminal and use bc when I need a calculator. I'm an old school kinda guy and tend to use keyboard shortcuts for everything I do. Use the mouse only when I absolutely have to.
I have never used that one before, but it does the job. :)
When you started your life off in front of machines that didn't have a mouse like the Vic20 and C64, keyboard short cuts stay with you forever.
Sysop: | altere |
---|---|
Location: | Houston, TX |
Users: | 69 |
Nodes: | 4 (0 / 4) |
Uptime: | 08:30:37 |
Calls: | 1,062 |
Calls today: | 2 |
Files: | 8,069 |
Messages: | 298,935 |