Linux I/O redirection cheat sheet

3/20 Edited to

... Read moreAs someone who frequently works with Linux command-line environments, I find understanding I/O redirection essential to optimizing my workflow and troubleshooting effectively. The cheat sheet provided here offers a handy guide to all the fundamental commands needed for redirecting standard input, output, and error streams. In my experience, mastering redirection operators such as the single greater ">" to send output to files, and double greater ">>" to append output instead of overwriting, has saved me countless hours when logging program outputs or capturing errors separately using "2>" or combined with standard output using "2>&1". I often use these redirection techniques in scripting to maintain clean logs or debug scripts by capturing detailed error information that would otherwise clutter the terminal. An often overlooked but powerful feature is using here-strings ("<<<") and here-documents ("<< EOF") for sending input directly into commands without interacting manually. This becomes especially helpful in automation tasks or when testing shell commands on the fly. Also, redirecting custom file descriptors like descriptor 3 using "3> file" can be applied in advanced scripting scenarios where separate streams are needed. Additionally, combining these operators lets you craft complex command pipelines efficiently. For example, redirecting both stdout and stderr to the same file ensures a unified log, which is invaluable during debugging or monitoring system processes. For anyone working in Linux development, system administration, or DevOps, internalizing these I/O redirection techniques is a must. They provide powerful tools to control command input/output behavior, automate workflows, and manage system resources effectively. I recommend keeping this cheat sheet handy, and also exploring the high-resolution PDFs with related Linux infographics at study-notes.org to deepen your practical knowledge further.

Related posts

A comprehensive DeepSeek Complete Cheatsheet by Jafar Najafov, outlining roles, tasks, restrictions, and specific prompts for business owners, developers, marketers, and designers, along with prompt priming and the C.R.E.A.T.E. formula.
A list of roles from a DeepSeek AI cheatsheet, including Lawyer, Ghostwriter, Website Designer, Best Selling Author, Chief Financial Officer, Expert Copywriter, Prompt Engineer, Accountant, Project Manager, Sports Coach, Financial Analyst, and Full Stack Developer.
A list of roles from a DeepSeek AI cheatsheet, including Analyst, Teacher, Marketer, Advertiser, Mindset Coach, Therapist, Journalist, and Inventor, under the heading 'Act as a [ROLE]'.
🚀 DeepSeek Complete Cheatsheet
Hey everyone! 🌟 I’ve put together a comprehensive cheatsheet based on the DeepSeek Complete guide by Jafar Najafov.This is perfect for anyone looking to leverage AI prompts effectively. Let’s dive in! 🧭 ---- Act as a [ROLE] Need to switch roles? Here’s a list of personas you can adopt: 1. Anal
Valder

Valder

75 likes

Google Sheets keyboard shortcuts
Google Sheets is a cloud based spreadsheet tool for organizing, analyzing, and sharing data online. Keyboard shortcuts make work faster and more efficient, esp when you are working with large datasets or performing frequent edits Here are useful keyboard shortcuts for Google Sheets 😎👆 Find
Learn Linux with Dan

Learn Linux with Dan

698 likes

A Linux Cheatsheet for Engineers from @thealpha.dev, listing various commands categorized into File System Operations, File Permissions, Process Management, Networking, System Information, Package Management, Shell Scripting, User and Group Management, File Transfer, and System Services. A penguin on a skateboard is at the bottom.
Linux cheat sheet✨️
Where are my tech babes at?👩🏿‍💻 This is something I'm learning in school😍 It's been super fun typing things into the command line and actually getting a response🥹💕💕💕 One of my classmates shared this cheat sheet to make using Linux easier #imdoingsomethingright #CybersecurityAwarenessMon
Deya!

Deya!

27 likes

These sites saved my brain in 2025 🧠💻
1. ChatHub I used to bounce between AI platforms, copy-pasting the same prompt over and over to compare answers. With ChatHub, I can talk to multiple AIs at the same time, in one clean interface. It’s honestly my go-to whenever I’m brainstorming content, writing study scripts, or just curious whi
emilie.studygram

emilie.studygram

561 likes

An infographic titled 'Linux curl Command Examples' provides a comprehensive list of curl commands. It covers HTTP GET operations with options like user-agent and custom headers, HTTP POST/PUT operations for data and file uploads, and various file download operations including resuming and rate-limiting. Created by Dan Nanni.
Linux curl command examples
The curl command is a flexible tool that lets you send or receive data from servers using protocols like HTTP, HTTPS, FTP, and others, all from the command line Here are useful curl command examples 😎👆 #devops #opensource #software #TechTips Find high-res pdf books with all my #lin
Learn Linux with Dan

Learn Linux with Dan

7 likes

A Linux watch command cheatsheet created by Dan Nanni, listing various commands to monitor system metrics in real-time. Examples include tracking CPU/memory usage, disk space, log file growth, network activity, and system errors, with refresh intervals specified.
Linux watch command cheatsheet
Ever wish you could just run a command and keep seeing it update automatically as things change? That is exactly what the watch command does on Linux Here are useful examples of the watch command 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org
Learn Linux with Dan

Learn Linux with Dan

5 likes

These 5 websites feel illegal to know!
#gettoknowme
Useful AI Websites & Tutorials

Useful AI Websites & Tutorials

38 likes

A person with long dark hair and a straw hat walks through a sunny public square. Overlay text reads "CYBERSECURITY CAREER Tips to get started," introducing advice for a career in cybersecurity.
A person in a white dress walks on a path next to green bushes. Overlay text advises to "Build a Strong Technical Foundation" by learning networking basics, operating systems, and scripting languages.
People walk across a street with benches and trees in the background. Overlay text suggests to "Get Hands-On Experience" through CTF competitions, cybersecurity challenges, and setting up a home lab.
Tips for pursuing a career in cybersecurity
1. Build a Strong Technical Foundation A solid understanding of systems, networks, and programming is essential for identifying and mitigating security threats. • Learn networking basics (e.g., TCP/IP, firewalls, VPNs). • Gain familiarity with operating systems (Windows, Linux)
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

137 likes

Powerful Websites
#freewebsite #website #fromsoftware #fyplemon8 #fyp
Tha Smoke Websites

Tha Smoke Websites

758 likes

An infographic titled 'Free Online Learning Resources' lists various programming languages and technologies like Linux, Go, AWS, C++, Python, Java, HTML, CSS, JavaScript, SQL, and more, each with a corresponding learning website. The image also credits Dan Nanni and study-notes.org.
Free online resources for software developers
In today’s AI era, learning a programming language is still vital because it lets you go beyond simply using AI tools to actually controlling how they work. And for those with that mindset, plenty of high-quality learning resources are available online 😎👆 #programming #coding #developer #
Learn Linux with Dan

Learn Linux with Dan

807 likes

Daytona Beach Shores, FL
edited in affinity, downscaled in GIMP on Linux Mint 22.3
tonykinflorida

tonykinflorida

3 likes

This image displays a comprehensive list of useful Wireshark filter examples. It includes filters for IP addresses, ports, protocols like TCP, UDP, HTTP, DNS, TLS, DHCP, and packet properties such as length and content. The infographic was created by Dan Nanni from study-notes.org.
Useful Wireshark filter examples
Wireshark filters cut through the noise so you can focus on the traffic that matters: protocols, IPs, ports, or even packet contents. For blue teams, they help track suspicious activity and investigate forensic evidence. For red teams, they help map behavior, spot weak points, and test defenses
Learn Linux with Dan

Learn Linux with Dan

2 likes

Linux I/O redirection
On Linux, I/O redirection allows you to control where a command reads input from or sends output to, such as files, devices, or other programs, by manipulating standard input, output, and error streams Here are useful I/O redirection examples 😎👇 #softwaredeveloper #softwareengineering #cyb
Learn Linux with Dan

Learn Linux with Dan

5 likes

A ChatGPT cheat sheet by Calvin Klein Reyes, detailing prompting techniques, roles, tasks, formats, writing styles, plugins, marketing prompts, tools, role-playing, prompt ideas, jailbreak prompts, and tips for effective prompting.
A ChatGPT prompting cheat sheet outlining modes, roles, formats, tones, chain prompt examples, and specific prompts for marketers, coders, sales, designers, research, customer service, and general use, along with top prompting tools.
A ChatGPT 'Zero to Power User' cheat sheet defining key terms, use cases, prompt frameworks, tones, formats, miscellaneous tips, modes, other chatbots, example prompts, and useful plugins for advanced prompting.
Chatgpt cheatsheet 1/10: one page equals a book
I've recently curated and tested several high-quality cheat sheets, each packed with a plethora of useful prompts and techniques that are easy to look up and remember. Leveraging these prompts can lead to efficient and top-notch creations for users across various industries and needs. #chatgp
Valder

Valder

75 likes

Useful sysdig command examples
Sysdig is one of those hidden gem tools that shows exactly what your Linux system is doing in real time — system calls, containers, network traffic, file access — everything, no guessing. Here are useful sysdig command examples 😎👆 Find high-res pdf ebooks with all my cybersecurity related inf
Learn Linux with Dan

Learn Linux with Dan

5 likes

Cave Dwellers Built the First Data Center
When your ancestors were running Linux before fire was invented. Stone age server farms hit different. #midjourney #cavecore #techno #ancient #cyberpunk
HalluciNEET 9000

HalluciNEET 9000

2 likes

Linux command chaining
Linux shells like bash and zsh make it easy to combine commands using chaining, command substitution, and process substitution, letting you run tasks in sequence, reuse command output, or connect commands more flexibly 😎👆 Find a high-res pdf ebook with all my Linux related infographics from http
Learn Linux with Dan

Learn Linux with Dan

2 likes

An infographic titled 'Linux netcat Command Examples' lists various `nc` commands for network tasks like port scanning, file transfer, creating shells, and streaming. It includes commands for TCP/UDP, IPv6, and persistent listeners, credited to Dan Nanni.
Useful netcat command examples
Netcat is the Swiss army knife of networking. It lets you read and write data over TCP or UDP, and infosec folks use it all the time for things like quick port scans, grabbing service banners, or setting up reverse shells. Here are useful netstat command examples 😎👆 Find high-res pdf ebooks w
Learn Linux with Dan

Learn Linux with Dan

7 likes

An infographic titled 'Useful TUI Linux Software' with a Tux penguin logo. It defines TUI as Text-based User Interface for terminal environments and lists various software categorized under Disk Manager, System Monitor, Web Browser, Network Manager/Monitor, Multimedia, GPT, Git, Coding, File Manager, and Messaging.
Useful TUI software on Linux
Linux TUI (Text User Interface) software offers a user-friendly way to interact with applications directly from the terminal, using text-based menus and interfaces instead of a graphical desktop environment Here are a categorized list of useful TUI software available on Linux 😎👆 #software #o
Learn Linux with Dan

Learn Linux with Dan

4 likes

A ranked list of the top 20 Linux-related GitHub projects, including their repository names, star counts, fork counts, and brief descriptions. Projects range from the Linux kernel to command-line tools, editors, and system monitors. The infographic is credited to Dan Nanni and study-notes.org.
Top Linux-related GitHub projects
As a Linux fan, I’m always curious which open-source Linux projects are getting the most attention on GitHub Here are some of the big ones 😎👆 Did I miss anything important? Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org #linux #github #op
Learn Linux with Dan

Learn Linux with Dan

4 likes

Linux commands for hardware information
Knowing your hardware is essential for effective troubleshooting, system tuning, and performance optimization. That’s why it’s important to be familiar with the OS tools that let you examine different parts of your system’s hardware Here are a list of useful Linux commands for looking up hardwar
Learn Linux with Dan

Learn Linux with Dan

4 likes

DebianLinux

DebianLinux

4 likes

A desk setup with a monitor displaying a project plan, a laptop, keyboard, and a plant, illustrating the topic of 'Excel alternatives best in 2025'.
A screenshot of Zoho Sheet displaying a spreadsheet with country population data, highlighting it as a free Excel alternative with advanced features for seamless collaboration.
A screenshot of Smartsheet's campaign planning interface, demonstrating its project management features, templates, and views for tracking progress and collaboration.
Excel alternatives best in 2025
Looking for a fresh spin on spreadsheets? These tools bring fresh alternatives to Excel and Google Sheets, offering powerful features, real-time collaboration, and user-friendly designs. Whether you’re a data enthusiast, team player, or productivity seeker, there’s something here for everyone. S
Reverelia

Reverelia

49 likes

An infographic titled 'Understanding Linux Signals' illustrates signal sources like kernel-detected faults, system calls, and kernel subsystems. It shows how processes handle signals through default actions, custom handlers, or ignoring them. A table details common signals, their numbers, default actions, and triggering conditions.
Understanding Linux signals
“Signals” provide a lightweight mechanism for the Linux kernel and other processes to asynchronously notify a running process about events such as faults, user interrupts, or system conditions 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org #linu
Learn Linux with Dan

Learn Linux with Dan

8 likes

Old bank notes
I collect also bank notes
DebianLinux

DebianLinux

8 likes

Linux terminal shortcuts
Level up your Linux skills! Terminal shortcuts make command-line work faster, from navigation to file management and quick command execution. Master them to work like a true power user Here is a summary of useful Linux terminal shortcuts 😎👆 #TechTips #softwaredeveloper #productivitytips
Learn Linux with Dan

Learn Linux with Dan

4 likes

Linux command chaining
POSIX-compliant Linux shells (bash, zsh, sh) support command chaining — a simple way to link multiple commands and control whether the next one runs based on success, failure, or just order of execution 😎👆 Find a high-res pdf book with all my Linux related infographics from https://study-notes.o
Learn Linux with Dan

Learn Linux with Dan

6 likes

Estas tres comidas son muy normales que me digan que lo hacen mis pacientes porque no sabían que era algo malo .. estos alimentos son muy altos en su índice glucemico y tiene el poder de subir tu azúcar por lo tanto disminúyelos #nutrióloga #bajarazucar #nutricion #comida
Nutriologaziomaramarquez

Nutriologaziomaramarquez

11 likes

Student Teaching Series: What to bring to student teaching!! Please let me know if you guys have ANY questions and I will do my best to make videos over the next couple weeks for you. I’m an open book and would LOVE to pass on anything I’ve learned. ☺️ #teachersoftiktok #middleschoolteacher
Kelly Having

Kelly Having

6 likes

DebianLinux

DebianLinux

2 likes

An infographic titled 'Defensive Security Browser Extensions' categorizes various browser extensions by function: Ad Blocking and Anti-Tracking, Password Management, Anti-Phishing & Malware Protection, Privacy Enhancement, and Script Blocking. It lists specific extensions under each category, created by Dan Nanni.
Useful browser extensions for defensive security
Browser extensions can quietly do a lot of security work while you browse: blocking malicious ads, managing passwords, limiting risky scripts, and warning you before phishing pages get a chance to bite 😎👆 Find high-res pdf ebooks with all my cybersecurity infographics at https://study-notes.org
Learn Linux with Dan

Learn Linux with Dan

2 likes

Two tips that are hard to hear. Thank you @jlinuxcheung #bosslady #talent #talentmanager #worldcup #iceman
Yana Eloul

Yana Eloul

0 likes

An infographic titled 'Ways to Remove Files on Linux' presents a comprehensive list of commands for deleting files and directories. It includes various `rm` commands for basic removal, `find` commands for conditional deletion based on criteria like age, size, user, or permissions, and other utilities like `unlink`, `shred`, and `trash-put`. The infographic is created by Dan Nanni from study-notes.org.
Different ways to remove files on Linux
There are various ways to remove files and directories on Linux, based on filenames, creation/access time, size, ownership, permissions, or security needs Here are useful command line examples of removing files on Linux 😎👆 #infosec #TechTips #software Find high-res pdf books with a
Learn Linux with Dan

Learn Linux with Dan

10 likes

The image illustrates how Linux cgroups manage resources like CPU, Memory, Storage I/O, and Network. It shows creating cgroups, attaching a process (PID 12345) to `cgroup3` via `/sys/fs/cgroup/cgroup3/cgroup.procs`, and defining its resource limits (e.g., 512M memory.max, 10M/5M disk I/O).
How Linux cgroups work
On Linux, cgroups control and isolate CPU, memory, and I/O per process or container—this is what makes predictable container performance possible 😎👆 Find high-res pdf ebooks with all my Linux and DevOps related infographics from https://study-notes.org #linux #docker #kubernetes #de
Learn Linux with Dan

Learn Linux with Dan

2 likes

Best AI tools for coding
From AI-powered full IDEs, AI editors to autonomous agents, AI tools are transforming how we code. They can write, debug, refactor, and explain faster than ever. Here are different types of AI tools for coding 😎👆Are you using any? #coding #programming #ai #chatgpt Find high-res pd
Learn Linux with Dan

Learn Linux with Dan

10 likes

An infographic explaining the Linux /etc/shadow file, detailing its purpose for storing hashed passwords and account security. It breaks down the file's column structure (username, password, last-change, min, max, warn, inactive, expire, reserved) and provides examples with interpretations for user 'dan' and 'sshd' accounts.
Linux /etc/shadow overview
On Linux, /etc/passwd keeps basic user account details. Password hashes used to live there too, but for security, they were moved to /etc/shadow, which is readable only by root. Here is how to interpret the /etc/shadow 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https:
Learn Linux with Dan

Learn Linux with Dan

1 like

I’m Linuxvr!
#gettoknowme #gorillatag #fyp #newcontentcreator #linux
🧑‍💻🐧Linuxvr_Offical🐧🧑‍💻

🧑‍💻🐧Linuxvr_Offical🐧🧑‍💻

1 like

LEVEL UP
#linux #technology #cybersecurity #code
Luna Bright

Luna Bright

4 likes

This image displays "Useful Linux Cron Examples," a comprehensive list of cron job schedules. It shows various cron expressions with corresponding commands and descriptions for tasks like running every minute, hourly, daily, weekly, monthly, yearly, at system startup, and more, created by Dan Nanni.
Useful Linux cron examples
Linux cron schedules recurring tasks at defined times using flexible expressions for minutes, hours, days, and months Here are useful cron job examples 😎👇 #software #softwaredeveloper #TechTips #technicalinterview Find a high-res pdf book with all my #linux related infographics fro
Learn Linux with Dan

Learn Linux with Dan

7 likes

DebianLinux

DebianLinux

87 likes

An infographic titled 'Linux FUSE-based Filesystems' categorizes various filesystems. Categories include Remote and Cloud, Archive and Image, Encrypted and Secure, Legacy and Compatibility, and Special-Purpose and Experimental filesystems, with examples for each. The infographic was created by Dan Nanni from study-notes.org.
Useful Linux FUSE filesystems
A FUSE filesystem is a user-space filesystem built on top of the Filesystem in Userspace (FUSE) kernel module, allowing developers to implement custom storage logic without writing kernel code Here are a categorized list of Linux FUSE filesystems 😎👆 #softwareengineer #computerscience #TechT
Learn Linux with Dan

Learn Linux with Dan

4 likes

An infographic titled 'Linux Commands for Hardware Info' by Dan Nanni, listing various Linux commands and their functions for checking hardware components like CPU, memory, storage, network, display, and peripherals, along with system information.
Linux commands for hardware information
Here are useful Linux commands for looking up hardware information such as hardware vendor or model info 😎👆 #sysadmin #devops #opensource #TechTips Find high-res pdf books with all my #Linux related infographics at https://study-notes.org
Learn Linux with Dan

Learn Linux with Dan

2 likes

So you want to “learn Linux”?
Here are the harsh truths nobody tells you… 🐧 Most Linux roles aren’t entry level. The CLI is mandatory. Certs don’t matter without skill. If that scared you… good. Because Linux isn’t for the weak. Still want to continue? #linux #cybersecurity #computerscience
Professor Linux

Professor Linux

1 like

OpenShot 3.4
This release introduces an experimental timeline, interactive cropping in the video preview, and huge performance improvements across the entire app. ARTICLES: 1) https://9to5linux.com/openshot-3-4-open-source-video-editor-released-with-new-effects-and-features 2) https://www.openshot.org/bl
Benjamin Tuckett

Benjamin Tuckett

0 likes

This image explains how to use Ddrescue in terminal mode on Windows to recover data. It shows a command-line interface, details about installation, disk identification, and the master command with options like force write and skipping damaged areas, emphasizing its ability to retry bad sectors.
This image introduces Ddrescue-GUI as a user-friendly alternative to the command-line version. It outlines settings for selecting source/destination, recovery modes (Balanced/Best), and the recovery process using a map file, ideal for users who prefer a graphical interface.
This image presents AOMEI Cloner as a smart, easy-to-use alternative for disk cloning. It highlights features like smart cloning that skips bad sectors, a visual interface, SSD optimization, and the ability to create a functional clone without complex commands, showing its disk clone interface.
How to Use Ddrescue on Windows | Full Beginner Gui
Got a hard drive with bad sectors that Windows can’t read properly? In this video, I’ll show you how to use GNU Ddrescue on Windows to recover or clone failing drives. We’ll go through both the command-line method and the GUI version, plus an easier alternative with AOMEI Cloner if you want to clon
Information Lab

Information Lab

0 likes

User management commands for Linux
Even on a single-user Linux system, multiple accounts keep root actions separate, run services with least privilege, and let you test things without breaking your main environment. Here are essential Linux commands for user management 😎👆 Find high-res pdf ebooks with all my Linux related info
Learn Linux with Dan

Learn Linux with Dan

3 likes

#Quick SED command cheat sheet for hackers & Linux users! ⚡ Clean logs, extract data, patch configs, anonymize info — fast and efficiently. 🔎💻 Master SED, level up your workflow. 🔒🔥 🔒 Disclaimer: This project is intended strictly for educational and ethical cybersecurity purposes. A
Luna Bright

Luna Bright

37 likes

Lemongrass66

Lemongrass66

1 like

This image displays a list of useful Linux shell aliases and functions created by Dan Nanni. It provides shortcuts for common command-line tasks like directory navigation, file management, system monitoring, process handling, network utilities, and system updates, aiming to boost productivity.
Useful Linux shell aliases and functions
Linux tip: Shell aliases or functions let you turn long or complex commands into short, memorable shortcuts — making your command-line workflow faster and cleaner Here are useful aliases and shell functions you can add to your shell configuration 😎👆 #devops #linux #productivityhacks #so
Learn Linux with Dan

Learn Linux with Dan

2 likes

A table titled 'Google Sheets Shortcuts' by Dan Nanni, listing keyboard shortcuts for Windows/Linux and macOS. It categorizes shortcuts for editing, navigation, selection, rows/columns, data entry/formula, and sheet operations like copy, paste, undo, redo, selecting cells, inserting/deleting rows/columns, and saving.
CNARC🎶🌞⛅️🌟🧡🦋

CNARC🎶🌞⛅️🌟🧡🦋

0 likes

See more