Add Random Inspirational Quotes to Your Linux Terminal with motivate & fortune
This guide walks you through installing the ‘motivate’ and ‘fortune’ command‑line tools on Debian‑based and RPM‑based Linux distributions, configuring them to display random motivational or witty quotes each time you open a terminal, and shows how to keep them updated.
This article provides a step‑by‑step tutorial for installing and using the motivate and fortune command‑line utilities, which display random motivational or witty quotes in a Linux terminal.
Prerequisites
Ensure that git and python3 are installed. Most modern Linux distributions include them by default; otherwise install them with the appropriate package manager. $ sudo apt-get install git python3 For other distributions use the corresponding installer.
Install motivate
Clone the repository, enter the source directory, and run the provided install script.
$ git clone https://github.com/mubaris/motivate.git
$ cd motivate/motivate
$ sudo ./install.sh
$ source ~/.bashrc <!-- for bash users -->If you use zsh, replace ~/.bashrc with ~/.zshrc in the last command.
Using motivate
After installation, execute motivate (or the shortcut moti) to display a random inspirational quote.
$ motivate
$ moti
"You don't have to be great to start, but you have to start to be great."
-- Zig ZiglarUpdating motivate
Periodically pull the latest version and run the update script to keep the tool current.
$ git clone https://github.com/mubaris/motivate.git
$ cd motivate
$ ./UPDATEInstall fortune
Install the fortune package using your distribution's package manager.
# RPM‑based systems
$ sudo yum install fortune
# DEB‑based systems
$ sudo apt-get install fortuneUsing fortune
Run fortune to display a random witty saying.
$ fortuneAutomatic display on terminal start
Add the commands to your shell’s startup file ( ~/.bashrc or ~/.zshrc) so that a quote appears each time a new terminal session begins.
# For motivate
motivate
# For fortune
fortuneSource the file to apply the changes: $ source ~/.bashrc # or source ~/.zshrc Now every new terminal window will greet you with a random motivational or witty quote.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
