‘cat’ Command: A Visual for the Curious Beginner

Janice Sanders
2 min readNov 4, 2023

--

‘cat’ Command Flow Chart: Basic file & Standard Input

If you’re learning Linux commands and find yourself struggling with the distinction between using the cat command with filenames as arguments AND using it to read from standard input, this visual is for you.

This flowchart visually delineates these two operations (basic file vs. standard input) with the use of the ‘cat’ command and provides a clear reference that is beneficial for beginners.

When you provide filenames as arguments:
cat acts as a reader, displaying file contents directly in your terminal

Without filenames as arguments:
cat becomes a receiver and ‘listens’, taking in what you type or what is piped from other sources and then outputting it accordingly

Use Cases:

Even the ‘cat’ command has use cases. Here are a few:

*️⃣Viewing contents of files
*️⃣Combining files
*️⃣Appending files
*️⃣Creating a new file
*️⃣Copying a file
*️⃣Scripting and piping
*️⃣Standard input redirection

If you’d like the pdf version of this flowchart, you can get it here.

🔗 For a more personal connection, connect with me on LinkedIn to network and grow together.

🔗To receive my latest projects, playbooks, and posts, follow my Medium page, and Subscribe to get email notifications when I post new stories.

➡️ I am a former English School Teacher who initially thought #tech and #cybersecurity was out of my reach.

➡️ My cybersecurity journey started by self-studying and then attending 8 weeks of free cybersecurity training.

➡️ I pivoted from Teaching to Cybersecurity Analyst in 2 months (2021). It’s no longer out of reach.

➡️ I went from being a Security Analyst to Security Engineer in 15 months.

➡️ I have a new course on Coursera for beginner-level vulnerability scanning: https://www.coursera.org/projects/vulnerability-scanning-with-nmap-network-scanning

➡️ I give back to support others seeking to break into tech or cybersecurity:

♦️ General community (students, career changers, you name it) — Teach2Geek: https://calendly.com/teach2geek

♦️ Military community (as a military spouse) — Veterati:
https://go.veterati.com/CcwKVi

--

--

Janice Sanders
Janice Sanders

Written by Janice Sanders

Cloud Engineer | Cloud Security Engineer | DevOps | Multi-Cloud | Coursera Course Developer | Former Writing Teacher

No responses yet