EVERY programmer should learn this command 👩‍💻 #programming #technology #software #tech #linux

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

it's the redirection (>) that causes the new file to be created, and it will work with any command that outputs text. It has NOTHING to do with the cat command. I felt that how that was presented was a bit misleading. Also, be very careful with the filename you choose to redirect to. If it matches an existing file, it will be overwritten without warning.

The command line is cool, but very dangerous sometimes. Sorry for the 'um actually' comment, but I think it's important to clarify these things in a video clearly aimed at newbies

MrRowntree
Автор

"cat" is not for creating files. You use "touch" for that.

Chronologist
Автор

cat does not write to a file. > tells the shell to redirect stdout to a file (and overwrite). >> will tell the shell to append instead of overwritting.

relims
Автор

Nowadays I use bat. It's a drop in cat replacement, but when you use it to display in the terminal it includes syntax highlighting and line numbers.

ccgarciab
Автор

I use cat to quickly reference small files without having to open them

sagetarus
Автор

Instead of `cat > file.txt` you can actually get away with just `> file.txt` its the redirect, as part of the shell that creates the file

myles
Автор

Had to code the cat command for an OS class

dot_frost
Автор

I used cat to read files into my bash command. I didn't know it can do that lol

bookle
Автор

I created an alias to cat command as minnie my cute cat

pranupranav
Автор

I rarely use cat now a days. But that merge thing is cool

ouo
Автор

Would you guys like to see a series like this? 🤔

CodingWithLewis
Автор

I was trying to remember this command yesterday.

j.r.r.tolkien
Автор

I always used cat for printing out the contents of a file to this day.

softvibes
Автор

Me as a Linux user - I am 5 parallel universes ahead of you

waterlord
Автор

Increase productivity? Watched this video 3 times and then scroll up thinking why its in loop.

Arora-Sir
Автор

And if you need to a read compressed file, you can use zcat

grabl_nordmann
Автор

I mean that's what it was designed for. But the truth is, everyone just uses cat to quickly check what's inside the file

zijngok
Автор

i used to use "touch" to make new files

Orincaby
Автор

Watch out! using the terminal is addictive.

sodakk
Автор

You have to be living under a rock to not know this.

huntabadday
visit shbcf.ru