---
title: "Discussion on \"Cheatsheet & Examples: tee\" | Hashnode"
description: "Discussion on \"Cheatsheet & Examples: tee\". Basic Usage: Output to a File\nExample Usage:tee filename  \nWhat it does:Writes the standard output to the specified file. If the file doesn’t exist, it creates it. If it does, it appends to it.  \nCommand-line Arguments Explained:  \n\nfilename: The nam..."
url: "https://hashnode.com/posts/cheatsheet-examples-tee/690477c4ad10e57f50c732c6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cheatsheet & Examples: tee](https://tech.mrleong.net/cheatsheet-examples-tee?utm_source=hashnode&utm_medium=feed)

Basic Usage: Output to a File Example Usage:tee filename What it does:Writes the standard output to the specified file. If the file doesn’t exist, it creates it. If it does, it appends to it. Command-line Arguments Explained: filename: The nam...

Oct 31, 2025 · 3 min read · tech.mrleong.net  
Read the article

-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)
-   [#cli](https://hashnode.com/tag/cli)
-   [#tee](https://hashnode.com/tag/tee)

## Written by

[Hong](https://hashnode.com/@hongster)

@hongster · Johor Bahru, Malaysia

  
[View profile](https://hashnode.com/@hongster)

Script Monkey @ Innoractive

I work with Linux in the day, ballroom dancing at night. I use Arch, btw.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
