Essential Linux Commands - Cat, Tac and Tee

preview_player
Показать описание
In this video, I will discuss three of the basic command line utilities: cat, tac and tee. These commands are useful for printing the contents of files to standard output and concatenating files. Very handy tools to know whether using the shell interactively or scripting.

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

Looks like you have a much more stronger and complicated password on your main machine there. Excellent video! I love these shell command videos. This one was really interesting. Thanks!

Phydoux
Автор

You have been such a large help in my Linux endeavors!! Thank you!

reality-drift
Автор

cat is also useful to write/burn isos to drives, so it's a more efficient and clean alternative to dd or the other gui utilities out there

motozappa
Автор

Top notch examples!
More of these videos, please.

CostaKazistov
Автор

Tac & Tee sound quite like the little programs I've written for some specific use, often a single use. Or sometimes I've used them twice.

OldieBugger
Автор

Excellent tutorial, especially (at least for me) the "tee" part.

Appalling
Автор

Hah LOL, fresh video from 20 sec ago!! Yeah!!

maciejszostakiewicz
Автор

In love with your scripting tutorials <3

nxzthelinuxguy
Автор

I have never heard of tac before your video

linuxdude
Автор

The tee content is missing a really cool addition that I've only needed once so far. Using process substitution you can split pipes to multiple commands (ksh/bash/zsh):

Uname | tee >(cowsay) >(grep a) ... >(Command n) | grep b

All the commands will be run with the same input

Think you can do the same process substitution in fish by just doing:

command 1 | tee (command 2) (command 3)

jamboyman
Автор

Dude I never knew about tac, so much fun lol

whiskeylinux
Автор

You explained > and >>, but not |. Of the three, I would think that's the one that most needs explaining to beginners. Also, I didn't know command-line arguments really count as stdin, I thought that was only when programs ask for input while running (the way a newbie's second program after hello world, the one that echoes your name back at you, would typically work).

MasterHigure
Автор

thx man! the command tee I have used far too rarely :)

Handy-Handy
Автор

I actually had the very last problem recently. I just sledgehammered it with su, but the tee solution would have been much more elegant :)

MarkusHobelsberger
Автор

Hello DT, in the cat example, are you sure the newfile.txt and bashrc are the same with order difference?

xrafter
Автор

Hey DT, I feel that the classic "hello world" statement should be replaced by "Hi Mom!" Do you agree with me?

agneaybnair
Автор

I use tee within mysql to run reports for clients. It's very handy.

davidpetersonharvey
Автор

Quick question - will You put link/direct command to change color of cursor in terminal?

staswisniewski
Автор

would "sudo -u root echo 1 > /proc/sys/kernal/sysrq" work as well?

kadensharpin
Автор

15:02 now open that file using vim or nano.

You will see all of thaf weird "/003" escapes that got interepted by the shell.

xrafter
welcome to shbcf.ru