20 amazing Linux commands
Have fun playing Linux! Haha. Don't believe it. Remember me, at the end of the article, you will believe that Linux is really fun.
1. Command: sl (steam locomotive)
You may understand the 'LS' command and often use it to view the folder content. However, sometimes you may spell it as 's1'. How can we get some fun instead of seeing "command not found?
Install sl
Root @ tecmint :~ # Apt-get install sl (In Debian likeOS) root @ tecmint :~ # Yum-y install sl (In Red Hat like OS)
Output
Root @ tecmint :~ # Sl
When you input 'LS' instead of 'Ls', this command will also run.
2. Command: telnet
None! No !! This is not as complicated as it is. You may be familiar with telnet. Telnet is a trusted two-way network protocol. You do not need to install anything here. What you need is a Linux system and a connected network.
Root @ tecmint :~ # Telnet towel. blinkenlights. nl
3. Command: fortune
Try your unknown luck, and sometimes there is fun in the terminal.
Install fortune
Root @ tecmint :~ # Apt-get install fortune (for aptitude based system) root @ tecmint :~ # Yum install fortune (for yum based system) root @ tecmint :~ # Fortune You're not my type. For that matter, you're not even my species !!! Future looks spotty. you will spill soup in late evening. you worry too much about your job. stop it. you are not paid enough to worry. your love life will be... interesting.
4. Command: rev (FLIP)
It will reverse each string passed to it, isn't it fun.
Root @ tecmint :~ # Rev 123abc cba321 xuniL eb ot nrob born to be Linux
5. Command: factor
Let's talk about Mathematics. This command outputs all the factors of a given number.
Root @ tecmint :~ # Factor 5 5: 5 12 12: 2 2 3 1001 1001: 7 11 13 5442134: 2 5442134
6. Command: script
Okay, this is not a command, but a script, a very interesting script.
Root @ tecmint :~ # For I in {1 .. 12}; do for j in $ (seq 1 $ I); do echo-ne $ I x $ j =$ (I * j) \ t; done; echo; done 1x11 = 1 2x1 = 2 2x2 = 4 3x1 = 3 3x2 = 6 3x3 = 9 4x1 = 4 4x2 = 8 4x3 = 12 4x4 = 16 5x1 = 5 5x2 = 10 5x3 = 15 5x4 = 20 5x5 = 25 6x1 = 6 6x2 = 12 6x3 = 18 6x4 = 24 6x5 = 30 6x6 = 36 7x1 = 7 7x2 = 14 7x3 = 21 7x4 = 287x5 = 35 7x6 = 42 7x7 = 49 8x1 = 8 8x2 = 16 8x3 = 24 8x4 = 32 8x5 = 40 8x6 = 48 8x7 = 56 8x8 = 64 9x1 = 9 9x2 = 18 9x3 = 27 9x4 = 36 9x5 = 45 9x6 = 54 9x7 = 63 9x8 = 72 9x9 = 81 10x1 = 10 10x2 = 20 10x3 = 30 10x4 = 40 10x5 = 50 10x6 = 60 10x7 = 70 10x8 = 80 10x9 = 90 10x10 = 100 11x1 = 11 11x2 = 22 11x3 = 33 11x4 = 44 11x5 = 55 11x6 = 66 11x7 = 77 11x8 = 88 11x9 = 99 11x10 = 110 11x11 = 121 12x1 = 12 12x2 = 24 12x3 = 36 12x4 = 48 12x5 = 60 12x6 = 72 12x7 = 84 12x8 = 96 12x9 = 108 12x10 = 120 12x11 = 132 12x12 = 144
7. Command: Cowsay
A calf consisting of ASCII codes on the terminal, the calf will say what you want it to say.
Install Cowsay
Root @ tecmint :~ # Apt-get install cowsay (for Debian based OS) root @ tecmint :~ # Yum install cowsay (for Red Hat based OS)
Output
Root @ tecmint :~ # Cowsay I Love nix ____________ <I Love nix> ------------ \^__ ^ \ (oo) \ _______ (_) \/\ | ---- w |
What if I use a pipeline to redirect the 'fortune command 'command to cowsay?
Root @ tecmint :~ # Fortune | cowsay
_________________________________________/Q: How many Oregonians does it take to \ | screw in a light bulb? A: Three. one to | screw in the light bulb and two to fend | off all those | Californians trying to share the | \ experience. /----------------------------------------- \ ^__^ \ (oo) \ _______ (_) \/\ | ---- w |
Tip: '|' is the pipeline command character. Generally, the output of a command is used as the input of the next command. In the preceding example, the output of 'fortune 'is used as the output of the 'cowre' command. Pipeline commands are often used in scripts and programming.
Xcowsay is a graphical interface program. Similar to cowsay, it is only expressed in a graphical manner. It can be said that it is a cowsay of the X version.
Apt-get insatll xcowsay yum install xcowsay
Output
Root @ tecmint :~ # Xcowsay I Love nix
Cowthink is another command. Run "cowthink Linux is sooo funny" to see if it is different from cowsay.
Apt-get insatll cowthink yum install cowthink
Output
Root @ tecmint :~ # Cowthink .... linux is sooo funny _________________________(.... linux is sooo funny) ------------------------- o ^__ ^ o (oo) \ _______ (_) \/\ | ---- w |
8. Command: yes
Yes is a very interesting and useful command. Especially for scripting and system administrators, It can automatically generate pre-defined responses or upload them to terminals.
Root @ tecmint :~ # Yes I Love Linux I Love linux
Tip: (it will not be stopped until you press ctrl + c)
9. Command: toilet
What? Are you kidding me! Of course not, but it must be that the name of this command is too complicated, and I do not know where the name of this command comes from.
Install toilet
Root @ tecmint :~ # Apt-get install toilet root @ tecmint :~ # Yum install toilet
Output
Root @ tecmint :~ # Toilet tecmint mmmmmmm "m # mmm m mm # mm mmm ##"##""#####"###""#"" ###### "" ################ "# mm" "# mm" ### mm # # "mm #" # mm "" # m #"###
This command even provides some color and font formats.
Root @ tecmint :~ # Toilet-f mono12-F metal Tecmint.com
Tip: Figlet is another command with similar effects as toilet.
10. Command: cmatrix
You may watch many Hollywood movies 'black guest authorization' and be fascinated by the ability of Neo to see everything in the matrix, or you may think of a vivid screen similar to a 'hacker' desktop.
Install cmatrix
Root @ tecmint :~ # Apt-get install cmatrix root @ tecmint :~ # Yum install cmatrix
Output
Root @ tecmint :~ # Cmatrix
11. Command: oneko
Maybe you believe that Linux's mouse pointer will always be the same black or white and not vivid at all, then you will be wrong. "Oneko" is a software package that attaches a "Jerry" mouse pointer to your mouse.
Install oneko
Root @ tecmint :~ # Apt-get install oneko root @ tecmint :~ # Yum install oneko
Output
Root @ tecmint :~ # Oneko
Tip: When the terminal running oneko is closed, Jerry disappears and no more items will be output when the terminal is restarted. You can add this program to the startup options and continue using it.
12. Fork bomb
This is a very undrawn code. You are responsible for the consequences of running this command. This command is actually a fork bomb. It will multiply exponentially, until all system resources are used or the system is suspended (you can try this command to see the power of this command, but you are at your own risk, remember to turn it off and save all other programs and files before running it ).
Root @ tecmint :~ # :() {:| :&}:
13. Command: while
The "while" command below is a script that provides you with a colored date and file until you press the interrupt key (ctrl + c ). Copy and paste this command to your terminal.
Root @ tecmint :~ # While true; do echo "$ (date '+ % D % T' | toilet-f term-F border -- gay)"; sleep 1; done
Tip: The above script will generate similar output through the following modifications, but it is still a bit different. Try it on your terminal.
Root @ tecmint :~ # While true; do clear; echo "$ (date '+ % D % T' | toilet-f term-F border -- gay)"; sleep 1; done
14. Command: espeak
Tune the volume of your multimedia speaker to the maximum, and then copy this command to your terminal to see how you respond when you hear the voice of God.
Install espeak
Root @ tecmint :~ # Apt-get install espeak root @ tecmint :~ # Yum install espeak
Output
Root @ tecmint :~ # Espeak "Tecmint is a very good website dedicated to Foss Community"
15. Command: aafire
How can I put a fire on your terminal. Click "aafire" on your terminal. You don't need any quotation marks to check this magic scene. Press any key to specify the program.
Install aafire
Root @ tecmint :~ # Apt-get install libaa-bin
Output
Root @ tecmint :~ # Aafire
16. Command: bb
First install "apt-get install bb", and then press "bb" to see what will happen.
Root @ tecmint :~ # Bb
17. Command: url
Would it be cool to change your twitterstatus using command lines in front of your friends. Replace username, password, and "your status message" with your username and password and the desired status respectively.
Root @ tecmint :~ # Url-u YourUsername: YourPassword-d status = "Your status message" http://twitter.com/statuses/update.xml
18. ASCIIquarium
What should I do if I want to get an aquarium on the terminal?
Root @ tecmint :~ # Apt-get install libcurses-perl root @ tecmint :~ # Cd/tmp root @ tecmint :~ # Wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz root @ tecmint :~ # Tar-zxvf Term-Animation-2.4.tar.gz root @ tecmint :~ # Cd Term-Animation-2.4/root @ tecmint :~ # Perl Makefile. PL & make test root @ tecmint :~ # Make install
Install ASCIIquarium
Download and install ASCIIquarium.
Root @ tecmint :~ # Cd/tmp root @ tecmint :~ # Wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz root @ tecmint :~ # Tar-zxvf asciiquarium.tar.gz root @ tecmint :~ # Cd asciiquarium_1.1/root @ tecmint :~ # Cp asciiquarium/usr/local/bin root @ tecmint :~ # Chmod 0755/usr/local/bin/asciiquarium
Finally, Run "asciiquarium" or "/usr/local/bin/asciiquarium" on the terminal. Remember not to enclose the quotation marks. The magic scene will be displayed in front of you.
Root @ tecmint :~ # Asciiquarium
19. Command: funny manpages
First install "apt-get install funny-manpages" and then run the man manual of the following command. Some of them:
Baby celibacy condom date echo flame flog gong grope, egrope, fgrope party rescrog rm rtfm tm uubp woman (unreceivented) xkill xlart sex strfry root @ tecmint :~ # Man baby
20. Linux Tweaks
It's time to make some optimizations.
Root @ tecmint :~ # World bash: world: not found root @ tecmint :~ # Touch girls \ boo ** touch: cannot touch 'Girls boo ** ': Permission denied root @ tecmint :~ # Nice man woman No manual entry for woman root @ tecmint :~ # ^ How did the sex change operation go? ^ Bash: s ^ How did the sex change operation go? ^: Substitution failed root @ tecmint :~ # % Blow bash: fg: % blow: no such job root @ tecmint :~ # Make love make: *** No rule to make target 'love'. Stop. $ [whereis my brain? Sh: 2: [: missing] % man: why did you get a divorce? Man: Too required arguments. %! : Say, what is saccharine? Bad substitute. server @ localhost:/srv $ \ (-bash: (-: command not found
Linux always sexy: who | grep-I blonde | date; cd ~; Unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep (if you know what I mean, sweat !)
There are also some other commands, but these commands cannot be run on all systems, so this article does not involve. For example, dog, filter, and banner