Posted: . At: 12:29 PM. This was 3 years ago. Post ID: 4711
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Interesting Linux commands to show off to your friends. These are quite cool indeed.

The toilet command prints out large text banners like the Figlet command. Here is an example. The banner is printed in colour.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ toilet --metal "Hello World."
 
 m    m        ""#    ""#                 m     m               ""#        # 
 #    #  mmm     #      #     mmm         #  #  #  mmm    m mm    #     mmm# 
 #mmmm# #"  #    #      #    #" "#        " #"# # #" "#   #"  "   #    #" "# 
 #    # #""""    #      #    #   #         ## ##" #   #   #       #    #   # 
 #    # "#mm"    "mm    "mm  "#m#"         #   #  "#m#"   #       "mm  "#m## 
 
 
 
 
 
 
 
   #

Use this obfuscated command to print out “RTFM” to the console.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
RTFM

Convert a text string into a hexadecimal dump using the hexdump command.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ echo "Hello World." | hexdump -C
00000000  48 65 6c 6c 6f 20 57 6f  72 6c 64 2e 0a           |Hello World..|
0000000d

A variation on the toilet command.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ figlet-toilet --gay "Hello"
 
 m    m        ""#    ""#          
 #    #  mmm     #      #     mmm  
 #mmmm# #"  #    #      #    #" "# 
 #    # #""""    #      #    #   # 
 #    # "#mm"    "mm    "mm  "#m#"

Another cool command; the old banner command. Make a nice banner of your username.

Type this command to install this utility.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ sudo apt install sysvbanner
┌──[jason@192.168.1.3][~]
└──╼  ╼ $ banner $LOGNAME
 
      #    ##     ####    ####   #    #
      #   #  #   #       #    #  ##   #
      #  #    #   ####   #    #  # #  #
      #  ######       #  #    #  #  # #
 #    #  #    #  #    #  #    #  #   ##
  ####   #    #   ####    ####   #    #

I thought I might post this again; the printerbanner command. This will create a Dot Matrix printer banner.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ printerbanner "Hello"
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                                                                                #### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                              ####                                              ####                                 #### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
 
                                                ################## 
                                           ############################ 
                                         ################################ 
                                       #################################### 
                                     ######################################## 
                                   ############################################ 
                                  ############################################## 
                                 #############         ####         ############# 
                                #########              ####              ######### 
                                #######                ####                ####### 
                               ######                  ####                  ###### 
                               #####                   ####                   ##### 
                              #####                    ####                    ##### 
                              ####                     ####                     #### 
                              ####                     ####                     #### 
                              ####                     ####                     #### 
                              ####                     ####                     #### 
                              ####                     ####                    ##### 
                               ###                     ####                   ##### 
                               ####                    ####                  ###### 
                                ###                    ####                ####### 
                                ####                   ####              ######### 
                                 ####                  ####         ############# 
                                  ####                 ######################### 
                                   #####               ######################## 
                                     #####             ###################### 
                                       ####            #################### 
                                                       ################## 
                                                       ################ 
                                                       ########### 
 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              #### 
                              #### 
 
                              ####                                                                                   #### 
                              ####                                                                                   #### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              ########################################################################################### 
                              #### 
                              #### 
 
                                                ################## 
                                           ############################ 
                                         ################################ 
                                       #################################### 
                                     ######################################## 
                                   ############################################ 
                                  ############################################## 
                                 #############                      ############# 
                                #########                                ######### 
                                #######                                    ####### 
                               ######                                        ###### 
                               #####                                          ##### 
                              #####                                            ##### 
                              ####                                              #### 
                              ####                                              #### 
                              ####                                              #### 
                              ####                                              #### 
                              #####                                            ##### 
                              #####                                            ##### 
                               #####                                          ##### 
                               ######                                        ###### 
                                #######                                    ####### 
                                #########                                ######### 
                                 #############                      ############# 
                                  ############################################## 
                                   ############################################ 
                                     ######################################## 
                                       #################################### 
                                         ################################ 
                                           ############################ 
                                                ##################

Use the whatis command to display what a particular command does. This is a useful alternative to the man command when you just want a quick summary of what the command will do.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ whatis fdisk
fdisk (8)            - manipulate disk partition table

Get information about startup processes. This shows the top 20 processes that are taking the longest to start up.

┌──[jason@192.168.1.3][~]
└──╼  ╼ $ systemd-analyze blame | head -n 20
1min 32.366s plymouth-quit-wait.service                                                            
     23.270s dev-sdc1.device                                                                       
     19.609s systemd-tmpfiles-setup.service                                                        
     13.213s NetworkManager-wait-online.service                                                    
     12.776s snapd.seeded.service                                                                  
     12.141s plymouth-read-write.service                                                           
     11.208s snapd.service                                                                         
     10.299s postfix@-.service                                                                     
     10.250s networkd-dispatcher.service                                                           
     10.067s accounts-daemon.service                                                               
      8.545s polkit.service                                                                        
      8.514s tor@default.service                                                                   
      8.367s avahi-daemon.service                                                                  
      8.364s NetworkManager.service                                                                
      7.926s dev-loop12.device                                                                     
      7.870s dev-loop13.device                                                                     
      7.865s dev-loop11.device                                                                     
      7.852s dev-loop18.device                                                                     
      7.836s switcheroo-control.service                                                            
      7.831s thermald.service

This is very useful if you wish to know which service is slowing down the startup.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.