Operations 5 min read

Cool Linux Terminal Tricks: pv, toilet, rig, aview, xeyes & cowsay

This article introduces a collection of fun Linux command‑line utilities—pv, toilet, rig, aview, xeyes and cowsay—showing how to install them with yum or apt, explaining key options, and providing ready‑to‑run one‑line examples that create typing effects, bordered text, random IDs, ASCII images, eye‑tracking graphics, and customizable animal speech bubbles.

ITPUB
ITPUB
ITPUB
Cool Linux Terminal Tricks: pv, toilet, rig, aview, xeyes & cowsay

pv command

Install pv (Pipe Viewer) using the system package manager:

# yum install pv        # Red Hat‑based systems
# sudo apt-get install pv   # Debian‑based systems

Example that creates a typing‑effect by limiting the output rate to 10 bytes per second and suppressing the progress bar:

echo "Howtoing.com is a community of Linux Nerds and Geeks" | pv -q -L 10

Flags : -q – quiet mode; no progress information is printed. -L – limit the transfer rate (bytes per second). Adjust the numeric value to change the typing speed.

toilet command

After installing toilet (e.g., sudo apt-get install toilet or yum install toilet), the following Bash loop prints the current date inside a bordered box that updates every second:

while true; do
  echo "$(date | toilet -f term -F border)"
  sleep 1
done

Press Ctrl+Z (SIGSTOP) to pause the script; fg resumes it.

rig command

rig

generates a random personal identifier (name, address, phone, etc.) each time it runs. Install it with the package manager and invoke it directly: # rig The output is useful for testing scripts that require fake personal data.

aview (asciiview) command

The aview package provides asciiview, which renders images as ASCII art in the terminal. After installing the package, display an image (e.g., elephant.jpg) with: asciiview elephant.jpg -driver curses The -driver curses option forces a pure‑text display.

xeyes command

xeyes

is a small X11 program that opens a window containing two eyes that follow the mouse cursor. Install it (usually part of the x11-apps package) and run: xeyes The program demonstrates basic X11 event handling.

cowsay command

cowsay

prints a message inside an ASCII speech bubble, defaulting to a cow. Install it with the package manager, then:

List all available characters: cowsay -l Display a message with a specific character (e.g., an elephant): cowsay -f elephant "Howtoing is Best" Display a message with the GNU mascot: cowsay -f gnu "Howtoing is Best" Additional options such as -W (wrap width) and -n (no trailing newline) can be combined for custom layouts.

pv typing effect
pv typing effect
toilet date loop
toilet date loop
rig random identity
rig random identity
asciiview elephant
asciiview elephant
xeyes window
xeyes window
cowsay elephant
cowsay elephant
cowsay gnu
cowsay gnu
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PVcowsaytoiletxeyes
ITPUB
Written by

ITPUB

Official ITPUB account sharing technical insights, community news, and exciting events.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.