14 interesting Linux commands in Terminal

Terminal is a software program that is preinstalled on Linux operating systems that allows users to communicate with the computer by running commands. The Terminal role is very powerful, but it can become 'interesting' through a few Bash commands that Quantrimang will introduce to you later. Let's follow up and find out because some commands are quite useful.

14 interesting Linux commands in Terminal Picture 1

1. cal

It's true that there aren't too many people who know this command, but any Unix system has a built-in calendar.

To query this command, we use the following:

 cal 

14 interesting Linux commands in Terminal Picture 2

Cal will display the calendar for the current month. If you want to select specific months and years, pass this data into the parameter of cal to get the output you need.

To display the month of the year, use the -m command along with the month you want to display.

 cal -m1 

The above command returns January of the current year.

Similarly, a complete 12-month calendar can be displayed using the -y command

 cal -y [year] 

There are many ways to work with other cals, Quantrimang will introduce you later!

2. sl

Sl stands for Steam Locomotive and is very often confused with ls. Running this command, you will see a steam locomotive run across the screen.

Sl was born with no specific usefulness for users but only for entertainment and reminders when you make the mistake of ls command with sl. It can be judged that the program is very 'cool' to remind to fix errors.

To install this command, type in your Terminal:

 sudo apt install sl 

Then 'mistype' ls into sl like this:

 sl 

14 interesting Linux commands in Terminal Picture 3

3. yes

The yes command is very special, the only effect is to repeat the sequence continuously, producing a long infinite series, of course until it has a stop command.

Yes very simple, just type this:

 yes 

For example:

 yes I did it 

You use Ctrl + C to stop the string, otherwise it will last forever without stops.

Although overall there is no effect, but it is very handy when you are running a script that displays reminders and you want to automatically answer. For example:

 yes y / path / to / script 

This command will give the y character from the yes command to automatically answer "yes" to each question y / n.

4. rev

The rev command is used to reverse all input characters. This means, if the input you pass is 'Linux' , through the rev command it will become 'xuniL' . Pretty strange!

 rev 

14 interesting Linux commands in Terminal Picture 4

To exit the command, use the shortcut Ctrl + C.

In addition, rev is also used to reverse the entire file.

 rev [path to file] 

5. aafire

Aafire gives you an interesting 'fire creation' on the black interface of Terminal.

First, install aafire with the following code on your Terminal:

 sudo apt install libaa-bin 

Then run the command:

 aafire 

14 interesting Linux commands in Terminal Picture 5

6. espeak

Do you work with a computer everyday and never heard it talk? This is no longer impossible with the espeak command . Open the speaker or put on the headset, run the espeak command and listen to 'this friend' talk.

Install this command into Terminal:

 sudo apt install espeak 

Then run espeak:

 espeak "Viet on the day you want to know" 

Everything you write in quotes will be what the computer "confides" with you.

7. figlet

Figlet is a simple command line for creating ASCII text banners. The figlet that comes with the default fonts is stored as .flf or .tlf in / usr / share / figlet / fonts /. Use -f to change the font.

 figlet [-f title instead of font] [string] 

Example of figlet:

 Welcome figlet 

14 interesting Linux commands in Terminal Picture 6

8. banner

Banner is similar to figlet that displays text in large banner form. Install banner with the following command:

 sudo apt install banner 

Then use the syntax:

 banner text 

14 interesting Linux commands in Terminal Picture 7

9. cowsay

This command displays a cow in ASCII characters and will say what you want.

First, install cowsay with this script:

 sudo apt install cowsay 

Next you enter Terminal:

 cowsay text 

Enter 'text' what you want to display via the speech image of the ASCII cow.

14 interesting Linux commands in Terminal Picture 8

If you want to display a colorful Pony instead of a cow, install ponysay and run the command similar to cowsay.

 ponysay text 

14 interesting Linux commands in Terminal Picture 9

10. cowthink

This command is similar to cowsay, the only difference is that the screen will display the text you entered in the form of the ASCII cow, not the command as above.

 Cowthink text 

14 interesting Linux commands in Terminal Picture 10

11. fortune

Fortune is the command to automatically display random 'cool' quotes.

 sudo apt install fortune 
fortune

You can use the -s to give 'Terminal' to you the shorter quote.

 fortune [-s] 

14 interesting Linux commands in Terminal Picture 11

12. oneko

pretty oneko 'lovely'. This command adds a cat that runs on your screen, it will run chasing the mouse cursor while moving.

Install oneko by running this script:

 sudo apt install oneko 
oneko

14 interesting Linux commands in Terminal Picture 12

13. cmatrix

If you have watched the Matrix - Hollywood Matrix, you will easily associate this command. Install cmatrix with script:

 sudo apt install cmatrix 

Run the command by typing cmatrix in your Terminal.

14 interesting Linux commands in Terminal Picture 13

14. factor

This command involves mathematics. Factor will divide a given number into prime factors.

 factor [so muon to divide the bar compared to the other] 

14 interesting Linux commands in Terminal Picture 14

Recently, there are some interesting commands in Linux. We know that working with Terminal and the command line, the tasks are quite complicated, so it would be great to occasionally relax and relax with such gentle things like this?

See more:

  1. Some basic Terminal commands in Linux Mint 11
  2. 4 quick access to a Terminal in Linux
  3. How to run 2 or more Terminal commands at the same time on Linux
  4. How to delete the user and server name in Terminal Prompt
4.1 ★ | 10 Vote

May be interested

  • How to get an explanation of the command in a terminal with KmdrHow to get an explanation of the command in a terminal with Kmdr
    once you know what a command does, you can use it freely in the future. if you're struggling with linux commands, you can use the kmdr tool to explain them.
  • Common Terminal commands in Raspberry PiCommon Terminal commands in Raspberry Pi
    you have a raspberry pi on hand, but not completely confident with linux? although the main desktop is easy to use, sometimes users need to rely on the command line entry in the terminal.
  • 8 best free Terminal Emulator apps for Android8 best free Terminal Emulator apps for Android
    terminal emulator applications on android are handy when you want to execute commands within the android operating system just like on linux.
  • How to use Guake Terminal in LinuxHow to use Guake Terminal in Linux
    for many years, the terminal in linux remained unchanged. after all, there may not be much to fix or improve in a command prompt window. but guake proved this thinking wrong.
  • How to Launch Programs from Command Line on LinuxHow to Launch Programs from Command Line on Linux
    most linux distributions have a graphical user interface that allows us to open programs just by clicking on the program icon in the apps menu. however, sometimes you may want to launch programs from terminal. terminal is a powerful tool that allows users to launch programs and manage linux systems through keyboard commands. today's tipsmake will show you how to launch programs from terminal on linux.
  • 5 Linux commands every sysadmin needs to know5 Linux commands every sysadmin needs to know
    in a world full of new tools and diverse development environments, learning some basic sysadmin commands is practically essential for any developer or engineer.
  • 7 commands to manipulate the most basic files and folders everyone must know7 commands to manipulate the most basic files and folders everyone must know
    on windows or linux operating systems, there are a number of things that users can only do with commands. in the following article, the network administrator will introduce you to the 7 most basic commands that any user must 'understand' to perform operations faster.
  • Use commands and some tips for Mac OS XUse commands and some tips for Mac OS X
    in this tutorial we will show you how to use some commands and tips for mac os x.
  • How to execute Linux commands in the backgroundHow to execute Linux commands in the background
    linux commands are a great way to interact with the system using terminal. however, it can sometimes take a while to complete the task at hand. this forces the user to wait a significant amount of time or create a new shell entirely.
  • How to install dictionaries in Linux TerminalHow to install dictionaries in Linux Terminal
    a locally stored dictionary utility can really be useful when no other dictionary is available. there are many options in the linux software world. among these, there is an option that runs fairly 'smoothly' from the system terminal, called sdcv.