Interesting things about 20 Linux commands and Linux terminals

Source: Internet
Author: User
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 contents of the folder. However, sometimes you may spell the label: Linux command

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

 
 
  1. root@tecmint:~# apt-get install sl      (In Debian like OS) 
  2. root@tecmint:~# yum -y install sl       (In Red Hat like OS) 

Output

 
 
  1. 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.

 
 
  1. root@tecmint:~# telnet towel.blinkenlights.nl 

3. Command: fortune

Try your unknown luck, and sometimes there is fun in the terminal.

Install fortune

 
 
  1. root@tecmint:~# apt-get install fortune     (for aptitude based system) 
  2. root@tecmint:~# yum install fortune         (for yum based system) 
  3. root@tecmint:~# fortune 
  4. You're not my type.  For that matter, you're not even my species!!! 
  5. Future looks spotty.  You will spill soup in late evening. 
  6. You worry too much about your job.  Stop it.  You are not paid enough to worry. 
  7. Your love life will be... interesting. 

4. Command: rev (flip)

It will reverse each string passed to it, isn't it fun.

 
 
  1. root@tecmint:~# rev 
  2. 123abc  
  3. cba321  
  4. xuniL eb ot nrob 
  5. born to be Linux 

5. Command: factor

Let's talk about Mathematics. this command outputs all the factors of a given number.

 
 
  1. root@tecmint:~# factor 
  2. 5  
  3. 5: 5  
  4. 12  
  5. 12: 2 2 3  
  6. 1001  
  7. 1001: 7 11 13  
  8. 5442134  
  9. 5442134: 2 2721067 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.