Learn the tee Command in Linux: Redirect and Log Output Easily

Опубликовано: 22 Август 2024
на канале: Learn Linux TV
9k
658

The Linux Crash Course series on Learn Linux TV will teach you an important Linux-related skill or concept in each video. In this episode, Jay will cover the tee command, which lets you see and save output at the same time!

*LEARN LINUX TV - YOUR HOME FOR LINUX-RELATED FUN AND LEARNING!*

* BRAND NEW UDEMY COURSES AVAILABLE!*
Check out my new courses on Udemy and learn something new!
• Getting Started with Ansible
• LPI Linux Essentials Complete Workshop

* SUPPORT LINUX LEARNING!*
• Grab some Linux swag
• Become a Channel Member
• Become a Patron
• 5% discount on LPI exam vouchers
• Check out my latest book
• Grab an awesome Pi-powered KVM
• Jay's Gear - Server, Computer and Video Production Stuff
_Note: Royalties and/or commission is earned from each of the above links_

* FULL LINUX COURSES FROM LEARN LINUX TV*
• Linux Crash Course
• Learn tmux
• Learn vim
• Bash Scripting Series
• Proxmox VE
• Getting Started with Ansible (Udemy)
• LPI Linux Essentials Workshop (Udemy)

* Time Codes*
00:00 - Intro
01:37 - Quick refresh
03:13 - Basic usage of the tee command
05:01 - Using tee with reports and lists
07:03 - Writing output to multiple files
08:15 - Permissions matter with tee
09:29 - Using append mode with the tee command

* FAQ*
• What is a "Distribution" of Linux?
• What is a "Desktop Environment"?
• Which Server Distro should I use?
• How do I create USB install media?
• How do I create multi-boot USB media?
• How do I connect to a server via SSH?
• How do I exit vim?
• How do I use APT?
• How do I use DNF?
• How do I use pacman?
• How do I use zypper?
• What is a "Flatpak"?
• What is a "Snap" package?
• How do I install Arch Linux?
• How do I configure SSH on my server?
• How do I install updates?
• How do I secure my Linux Server?
• How do I use LVM?
• How do I use Git?
• When will the "Year of the Linux Desktop" Happen?
• Do you have a sense of humor?

* LEARN LINUX TV ON THE WEB*
• Main site
• Community
• Official Github Account
• Enterprise Linux Security Podcast
• The Homelab Show Podcast
• Jay on Udemy
• Jay on Twitter
• Content Ethics
• Request Assistance

*️ DISCLAIMER*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.