Useless Use Of Cat Isn't Useless

  Рет қаралды 15,946

DistroTube

DistroTube

Күн бұрын

Every time I make a video where I'm doing stuff at the command line, inevitably I get the troll comment about the "useless use of cat" (UUOC). What's weird (and mildy annoying) about the folks crying "UUOC" is that my useless use of cat is not useless. I have my reasons!
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.paypal.com...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/...
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
SOCIAL PLATFORMS:
🗨️ Mastodon: distrotoot.com...
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/$/i...
DT ON THE WEB:
🕸️ Website: distrotube.com/
🐿️ Gemini Capsule: gemini://distro.tube
📁 GitLab: gitlab.com/dwt1
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
🎵 Ardour: ardour.org/
💻 VirtualBox: www.virtualbox...
🗒️ Doom Emacs: github.com/hli...
Your support is very much appreciated. Thanks, guys!

Пікірлер: 190
@sharktooh76
@sharktooh76 3 жыл бұрын
It's not useless if... it purrs ... 😂
@juzujuzu4555
@juzujuzu4555 3 жыл бұрын
Don't use the cat unless you got the consent.
@TheMostTruth
@TheMostTruth 3 жыл бұрын
I am root. i need not consent.
@mjdxp5688
@mjdxp5688 3 жыл бұрын
Never heard of the UUOC before. I feel like "wasting" a processor cycle isn't really a problem for a process that runs for less than half a second on modern computers, maybe on an ancient mainframe I suppose. Edit: You should talk about the GNU/Linux copypasta next.
@PauloConstantino167
@PauloConstantino167 3 жыл бұрын
copypasta
@taidee
@taidee 3 жыл бұрын
true, our computers are so quick that most of these commands complete at a blink of eye.
@flow5718
@flow5718 3 жыл бұрын
I sort of get where the UUOC crowd is coming from - because it's bad practice, I routinely run into situations when checking logs on my server which are in the several GBs, it's much faster to use grep instead of cat and grep. And I feel guilty, because it's not the processor or RAM that are in short supply but IOPS.
@themisterchristie
@themisterchristie 3 жыл бұрын
The wasting a process idea is an old hold over from the 1970s/1980s when computers were a lot less powerful and had way less memory and every process was precious.
@mjdxp5688
@mjdxp5688 3 жыл бұрын
@@themisterchristie I had a feeling. Now that essentially everyone has supercomputers I don't think that things need to be optimized that much anymore.
@auronkardek
@auronkardek 3 жыл бұрын
Everyone's gansta till DT use the dog command
@starnice5559
@starnice5559 3 жыл бұрын
Lol
@Noukkis
@Noukkis 3 жыл бұрын
Most of the time you can replace it with input redirection (e.g. "< .bashrc wc -l" instead of "cat .bashrc | wc -l") which could save you ever more characters. But I admit I myself often use cat out of habit
@miique
@miique 3 жыл бұрын
if you do this you should probably add "set -o noclobber" to your shell config so that you don't overwrite important files if you type ">" instead by mistake
@dontask8585
@dontask8585 3 жыл бұрын
@@miique Thanks for looking out
@mjdxp5688
@mjdxp5688 3 жыл бұрын
Thank goodness, this keyboard has a limited amount of keystrokes until it artificially breaks, I need to save every keystroke I can get.
@glidersuzuki5572
@glidersuzuki5572 3 жыл бұрын
Using cat make it faster for larger files.
@mgh7634
@mgh7634 3 жыл бұрын
I do what I want when it feels good to do it.
@user-he4ef9br7z
@user-he4ef9br7z 3 жыл бұрын
"Nooooooo! You just can't use another proooosssesss"
@Sveto8
@Sveto8 3 жыл бұрын
I just measured execution time od cat|wc vs wc on a 9000 lines file. The difference is 0.001s. I think people who really need speed probably know a better way of using processes, but for most people and today's computers piping is just fine...
@eniojuniorschutt2828
@eniojuniorschutt2828 3 жыл бұрын
The book "The Art of Unix Programming" by Eric Raymond is old, but contains interesting information. Among these pages one can find why the cat command is the way it is, according to the Unix philosophy.
@xorsirenz
@xorsirenz 3 жыл бұрын
i see you're also finally getting annoying with all these new linux users who copy/paste radical opinions even though they have no idea why they are saying this said "knowledge".. You lasted a lot longer than me. i started getting annoyed with those type of linux users 2 years ago.
@voiceofthetrue1849
@voiceofthetrue1849 3 жыл бұрын
😅
@moos3
@moos3 3 жыл бұрын
"there's a lot of useless bitching and moaning" Nailed it.
@Fertxunonimo
@Fertxunonimo 3 жыл бұрын
You can use alt+. to use the last part of last command, that usually is the file name, and avoid cat
@christophejournoud2773
@christophejournoud2773 3 жыл бұрын
In a perfect world, you should first send a mail to the UUOC consortium and wait for an official validation before using cat.
@mj-lc9db
@mj-lc9db 3 жыл бұрын
Id remeber the last time i used CAT but idk man
@HarryJurtz
@HarryJurtz 3 жыл бұрын
Hey
@HarryJurtz
@HarryJurtz 3 жыл бұрын
You are first
@djyotta
@djyotta 3 жыл бұрын
UUOC is actually a pretty naive concept. Even in scripting, I always prefer reading from stdin over reading from file. Consider "cat ${infile} | prog1 args | ... | progN args > ${outfile}" this is way more elegant than "prog1 args ${file} | ... | progN args > ${output}" because the input file and the output file are at the beginning and end of the command respectively (as DT pointed out). Makes later refactoring easier also as any program in the chain should be able to easily be swapped out. Even shell redirection (arguably better than using cat) is not as elegant as you end up with the same issue: prog1 args < ${infile} | ... | progN args > ${outfile}. For scripting, I don't see any real issue with using cat. Unless there is some huge files involved and you want control over input buffering etc. But that sort of stuff shouldn't be in a shell script in any case. As for programs that do not read from stdin, I typically create a wrapper for them so they do, because input/output files as arguments are a pain: #!/bin/bash # wrap prog so that it can take input from stdin fifo=$(mktemp -u) # unsafe - but you get the point mkfifo ${fifo} prog -input ${fifo} & cat - >${fifo}
@denisdubochevalier2829
@denisdubochevalier2829 3 жыл бұрын
My two cents on this: in most tutorials and videos, use of cat is not UUOC, because it serves as a placeholder for other commands. Though when typing commands, one should avoid them and either pass the filename as a parameter for large files (to allow block search instead of line search in awk/grep/sed/...) Or use redirection operators () for small to medium files: the gain of time isn't much, but it helps learn them and take the habit to use them, and there are so much more useful in so many contexts than cat. For instance, if you want to decode some base64 string from your clipboard, you can just type `base64 -d
@quarteratom
@quarteratom 3 жыл бұрын
echo cat | cat | cat
@cherubin7th
@cherubin7th 3 жыл бұрын
I always insert "multiplications with one" and "additions with zero" into my equations, to simulate the use in cat but in equations.
@StaticSchematic
@StaticSchematic 3 жыл бұрын
Here's how you're supposed to get the number of packages on your system: pacman -Q | cat | wc -l Cats are known for their impeccable ability to fit into narrow spaces, including between pipes.
@davidr2421
@davidr2421 3 жыл бұрын
Even in a script, it's not worth complaining over, most of the time. Firstly, there is a clarity and development reason to cat into pipe: If you've got a chain of pipes (as one often does), it improves readability to do everything as pipes (input | cmd1 | cmd2 | cmd3 | ..., VERSUS cmd1 input | cmd2 | cmd3 | ...) and the ability to swap out your commands as you please without messing around too much. If you want to pipe the input first into a different command before wc or whatever, that's less annoying if you were already using the cat-into-pipe pattern. Secondly, the efficiency is really unimportant, most of the time. If your operation is going to be in the inner loop of a large job, then worry about efficiency. Otherwise you can forget about it.
@ronnyheijdenberg7710
@ronnyheijdenberg7710 3 жыл бұрын
Exactly my opinion! Very good point.
@axelmaurice2013
@axelmaurice2013 3 жыл бұрын
Well, running a 🐱 command with the 🐠 shell looks pretty dangerous to me 😆
@ExpatZ266
@ExpatZ266 3 жыл бұрын
Well, they had a point when we were using 8086's and 4k of memory. Those days are long gone.
@1yaz
@1yaz 3 жыл бұрын
I get your point but those days never existed. I'd expect at least 128K of DRAM on an 8086/8088 PC.
@gwgux
@gwgux 3 жыл бұрын
lol, I never really thought about it. If cat really was as useless as they claim it to be, then why has it existed for decades and why hasn't it's capabilities changed? Methinks the developers and anybody who just needs to get stuff done on the CLI without a script know better. Right or wrong for the most efficient way to accomplish the task doesn't matter. When I'm on a server and I'm hammering away at the CLI without a script to interactively do something, it just needs to work. Let me know when a computer's CPU has a meltdown because someone did a UUOC on the CLI and maybe then you can make the argument. In 15-20 years of doing things directly on the CLI in Linux, not once have I ever seen it be an issue where I ran an inefficient string of commands (which happens a LOT in crunch time fixing something that's broke) take down a server for resource usage. Scripting, where the real heavy lifting gets done, that's where I'd never use cat and I don't know any Linux admins that use it in scripting either. Peak efficiency is for my scripts, interactive commands just need to work.
@AndersJackson
@AndersJackson 3 жыл бұрын
cat(1) HAS use cases, like concat files togethere from command line to one file/stream on stdout.
@derekgoodwine7509
@derekgoodwine7509 3 жыл бұрын
After using Linux for a lot of years it's clear to me that you can do the same thing in several different ways. This is the Opensuorce freedom spreading all over, that's the beauty of Linux! Stop hurting one another, we are Linux brothers not monks. Peace!!!
@Not-THAT-ChrisPratt
@Not-THAT-ChrisPratt 3 жыл бұрын
Could not have said it better myself!
@fcolecumberri
@fcolecumberri 3 жыл бұрын
The "useless use of cat" is only relevant if you are working with 1gb+ size files, if you are working with small files is esentially irrelevant to use cat or not use cat (even on scripting)
@NekoiNemo
@NekoiNemo 3 жыл бұрын
Well, at the very least i learned about "UUoC" today
@JohnDoe-sz5jh
@JohnDoe-sz5jh 3 жыл бұрын
That's the knee jerk reaction of those that proclaim through their response "look at me!" I think they have low self esteem.
@mgh7634
@mgh7634 3 жыл бұрын
Probably just trolling or the typical linux community egoism from the usual crowd that think they're big-brain for using Arch (but not Gentoo).
@StrikerEureka85
@StrikerEureka85 3 жыл бұрын
the only useless cat is the one lying on top of my computer case right now...
@retrogameplus3838
@retrogameplus3838 3 жыл бұрын
One of the reasons I use cat in the way you do is because the program receiving the data doesn't know about the source of the data. For example, it won't overwrite or modify a file because it's receiving data from stdin instead of reading that file manually. It can be very useful if you aren't sure if a program will modify a files contents.
@user-ux2kk5vp7m
@user-ux2kk5vp7m 3 жыл бұрын
Then use a redirection
@Luclecool123
@Luclecool123 3 жыл бұрын
I agree with you; that beeing said you can just use vi mode and 0cw
@stephan6530
@stephan6530 3 жыл бұрын
Instead of up arrow, you can use Alt+k so you would only need cw.
@bogdanh635
@bogdanh635 3 жыл бұрын
i use cat instead of < because it reminds me of cats and cheers me up
@TheKramak
@TheKramak 3 жыл бұрын
Solid argument 😎
@act.13.41
@act.13.41 3 жыл бұрын
I will admit that I have useless cats running around the neighborhood, but the Cat command is quite useful.
@mgh7634
@mgh7634 3 жыл бұрын
...you can use cat incorrectly? How if it conveniently outputs what you need to get a job done? It's like complaining someone used CTRL + L when they didn't need to.
@stevo19991
@stevo19991 3 жыл бұрын
This wouldn't have happened if you had used Dog instead.
@ChadsHobies
@ChadsHobies 3 жыл бұрын
My grampa used to say there is always more than one way to skin a cat. There are several ways to do the same thing or similar things on the cli. It's all a question of style when it comes down to it. I enjoy the methodology of the concepts you freely show us. I'm a Gentoo fan. I do lots of things differently than other people. We however have very similar styles. I absolutely hate moving the curser to the begining of the line. Yes you can add vim functionality to the cli and with a couple presses be at the beginning of a line. But I absolutely embrace the sys admin mantra of being idle as much as possible. Up arrow, backspace is faster than all of that other stuff. I got it the first time you did it. What I do not understand, is if they are such experts, why are they here? Why do they expend their precious life cycle moments imposing their style on everyone? If they are so much superior to something presented. Then why are they even here? I'll never understand vile high and mighty trolls. I ignore these knaves. They are of no consequence or value. They add nothing of value to a topic. Only needless drama.
@chrissaltmarsh6777
@chrissaltmarsh6777 3 жыл бұрын
I use cat a lot (I've been doing it for > 40 years). I use it thus: cat > {temporary rubbish file}. Type in whatever drivel I want, ctrl-d. Then, later, wondering what the hell is there, I can type 'cat crap' which gives me a juvenile pleasure for which I will sacrifice some machine cycles. Also, it is short for 'concatenate'. So you can add to the crap with >>.
@drghartnangamn
@drghartnangamn 3 жыл бұрын
Excuse me for giving a piece of advice here. Instead of using UP ARROW and piping, you can certainly use !$, which means "latest argument" or even !:N which means N-th argument, no need to use UP ARROW. The second thing should be mentioned is: you can use vi-mode in your command line, so you can edit the command line easily. You can use external editor such as vim to edit the command line: Ctrl-X,Ctrl-E (you can assign any key binding you like).
@minux1434
@minux1434 3 жыл бұрын
Man... I hope you're ok, you look really sick, specially looking your eyes :'( . I know you said you're better but please, get the rest you need to get over. We'll still be waiting for your content!
@triplexinaz
@triplexinaz 3 жыл бұрын
Well that's kinda rude...
@minux1434
@minux1434 3 жыл бұрын
@@triplexinaz I don't know why you say it's rude... I wrote this because I love his videos. He said days ago he was sick and I felt he wasn't really good when he did this video. That's why I'd like him to get better. What's exactly rude about that? Could you explain why wishing someone to get better is rude?
@kdemetter
@kdemetter 3 жыл бұрын
UBAMAUUOC I just fell down on the floor laughing
@mke7605
@mke7605 3 жыл бұрын
The thumbnail was a Useless Use Of Cat.
@ggkim6553
@ggkim6553 3 жыл бұрын
I feel the same way whenever you say something is better than the others.
@kellingc
@kellingc 3 жыл бұрын
what if you have two files you want to sort and get thr number of unique instances? somethung like cat jan.intake feb.intake | sort | wc -u Oh, and you don't need spaces around the pipes. I guess I had useless use of whitespace.
@jonnypeace2810
@jonnypeace2810 3 жыл бұрын
Wow, i never realised how frowned upon the cat command is..... 🤭
@MrRa1nes
@MrRa1nes 3 жыл бұрын
Let me interject for a moment. What you are referring to as useless use of cat, is in fact, useless use of GNU/cat, or as I've recently taken to calling it, GNU plus cat. cat is not a command unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU cat which is widely used today is often called "cat", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
@mikechappell4156
@mikechappell4156 3 жыл бұрын
The use of cat is consistent whether it is GNU or from one of the BSDs or Solaris. 'cat' actually is a command. (If you check man pages you may find a few different flags - haven't checked in years. The implementation of cat is probably pretty similar if you aren't using any flags. [Issues may exist with binary files, attached ttys, etc.]) There is nothing wrong with using 'cat' unless you are really concerned with optimization. Clarity and ease of modifying code is important too. The only time you would usually refer to 'cat' as 'GNU cat' is if you were addressing GNU only bugs/features or flags only recognized by GNU utilities. GNU binutils usually are a superset of the BSD versions and if you avoid GNU only flags they are largely compatible. (Flags may differ.)
@flatiron235
@flatiron235 3 жыл бұрын
Standard workflow: cat file_xyz Crap too big for the screen. Arrow up pipe into more or grep or whatever :)
@SlinkyD
@SlinkyD 3 жыл бұрын
more is less.... useful.
@flatiron235
@flatiron235 3 жыл бұрын
@@SlinkyD not if used correctly. It is perfect, when used as a bad example in a comment on KZbin. 😉
@SlinkyD
@SlinkyD 3 жыл бұрын
Sarcasm that's written, I forgot, forgive me: The "more" command is "less" useful. That's what I get for being a command line junky & using a GUI app. Imma bad nerd.
@flatiron235
@flatiron235 3 жыл бұрын
@@SlinkyD no worries. 👍
@tsundoku5733
@tsundoku5733 3 жыл бұрын
Useless use of KZbin comments is actually useless ;-)
@dave0783
@dave0783 3 жыл бұрын
I really enjoyed this rant bro. it brightened my morning lol thanks :)
@josephbrandenburg4373
@josephbrandenburg4373 3 жыл бұрын
What if I use cat to concatenate text files ?
@SimGunther
@SimGunther 3 жыл бұрын
That's an acceptable (and preferred) use of cat :)
@Zinnaca
@Zinnaca 3 жыл бұрын
Rant -> Yes this is familiar. People screaming "uses too much cpu" or "uses too much ram". My cpu is almost never 99% utilized by anything that i do on cli so waisting copule of cycles here and there means nothing to me. The other thing is this "uses too much ram" in context of window managers/desktop environments. I DO NOT CARE if my system uses 2gigs of ram after boot, i still have 30 left so these arguments are pointless to me. And yes i know there are cases (especially embedded systems) that are memory starved but that is not ALL cases! End of Rant Good to see you feeling better again! Keep up the vids they are very fun and informative!
@NoxavRagu
@NoxavRagu 3 жыл бұрын
cat is what i use when i not want to go into nano, still the first in mind
@dontask8585
@dontask8585 3 жыл бұрын
Cheers to that
@klin1klinom
@klin1klinom 3 жыл бұрын
UBAMAUUOC - that's almost racist.
@SlideRSB
@SlideRSB 3 жыл бұрын
Sometimes, I pipe the output of cat into cat.
@bender2033
@bender2033 3 жыл бұрын
tac is cat backwards
@Chris-ip8uv
@Chris-ip8uv 3 жыл бұрын
Why do you bother giving credence to folks that push your buttons?
@GeorgijTovarsen
@GeorgijTovarsen 3 жыл бұрын
Cat: best program to write ISO to /dev/sdX
@KingZero69
@KingZero69 3 жыл бұрын
why this man COPING so hard… 😂😂😂
@1yaz
@1yaz 3 жыл бұрын
Which command to use when reading a file is a bigger deal when your terminal is 9600 baud. Terminal emulator with unlimited scrollback? Not so much
@darthcabs
@darthcabs 3 жыл бұрын
The inspectors of other people's processor cycles strike again
@knutblaise9437
@knutblaise9437 3 жыл бұрын
Instead of refuting UUOC claims consider 02:22 "what's crazy is these people crying useless use of cat they know I know better". Combining those commenting with UUOC claims along with your 02:22 statement would make a useful video. Create a video showing alternatives to using cat and consider if "for your videos" saving a few keystrokes (up arrowing vs simply typing in a new command) is worth the upfront time you save vs all the wasted cycles of contemplating the UUOC claims and eventually creating a 6:43 video on the topic. FWIW I love the up arrow and will continue to save keystrokes over cycles. Also please consider defining the super key as the MS Windows Key/Apple Command Key once per distro video and maybe make it funny like the description of your password.
@Inkrementalgeber
@Inkrementalgeber 3 жыл бұрын
You told me to wc -l .bashrc and cat .bashrc | wc -l and it gave my the same output of 113
@ianoconnor1515
@ianoconnor1515 3 жыл бұрын
press home and use delete the change the command at the start
@harminparra7678
@harminparra7678 3 жыл бұрын
I use the cat command a lot. Practical when you need to read a file content without making modifications
@Danielddiniz
@Danielddiniz 3 жыл бұрын
Hey DT, you seem to be very annoyed by people’s UUOC comments. Don’t let this bother you, at the Linux community everyone has much to say about literally everything. Too much voiced and sometimes too little actioned.
@olivermeissner5198
@olivermeissner5198 3 жыл бұрын
DT, you're completely right and you know what you're talkin' about. Let's see what cat does: it opens a file and reads it's contents. What does wc do? Well, I guess it opens a file to read it's contents (and because in a linux system everything is a file, it doesn't really matter if it opens /dev/stdin or ~/.bashrc)... And finally lets answer the question what computers are there for... I guess they're here to turn electricity to heat while doing some work and not to turn electricity to heat while doing nothing... so... let them work!
@abdellatifdev
@abdellatifdev 3 жыл бұрын
I agree it not useless , I believe all the hype came from video about scripting, some people just like to focus on pointless things like as software engineer i seen worse that people fighting over the case of using four space or tab char in C language where tabbing is completely useless or even fight on which colorscheme is better, you know better, i trust what you do, your linux skills are great
@EdwinNoorlander
@EdwinNoorlander 3 жыл бұрын
humm, So UUOC = Useless use of comment
@tero.kinnunen
@tero.kinnunen 3 жыл бұрын
There are multiple ways to skin a cat (pun intended). UUOC award is probably the oldest joke of this kind I can remember. Myself thought is as mostly harmless, mildly amusing geeky joke. But point well taken, thanks for sharing! Maybe I'll change my position to "UUOC joke considered harmful".
@Alex-je6od
@Alex-je6od 2 жыл бұрын
Yeah.. 25 year sysadmin here. I *ALWAYS* start at cat. it allows me to start transforming data in a clear way. cat xxx | grep blah | grep -v noblah | awk etc Now, you might say, "yOu dOnT nEEd cat! JuSt grep wItH tHe file name!" The point you're missing is if I want to remove that first grep later on, I then have to transform the whole command and refactor it (moving the file name to the second grep). With the design above I can remove / adjust any component and have the overall command still work. It saves development / brain time when you're filtering / transforming a bunch of data in weird and wonderful ways. tldr; use the tools you're presented with. There are not "extra cycles" running cat.
@send2gl
@send2gl 3 жыл бұрын
I use cat to occasionally remind myself of an entry in a file. Can copy and paste too.
@petersilva037
@petersilva037 3 жыл бұрын
just clicked for the kitten picture... darn... cat >/dev/null.
@warmpondwater1610
@warmpondwater1610 3 жыл бұрын
UUOC - Useless Use Of Comment about Useless Use Of CAT.
@SlinkyD
@SlinkyD 3 жыл бұрын
ditto
@SimGunther
@SimGunther 3 жыл бұрын
With TempleOS, you don't need to worry about pipelines and cats because JIT compilation and single user address space ala C64 are king 🎉
@jackkeifer
@jackkeifer 3 жыл бұрын
hahaha, nice - your reasons taught me a pretty cool technique... thanks!
@KaiKrakow
@KaiKrakow 3 жыл бұрын
Well, next time you could run `
@blessed10012
@blessed10012 3 жыл бұрын
how do we get hold of you for business inquiries
@syscrashwashere
@syscrashwashere 3 жыл бұрын
Useless is as Useless does.
@SlinkyD
@SlinkyD 3 жыл бұрын
Most of the world's population can be attribute to UUOC. Play that Gucci Mane song. 🐈
@tjingboem5447
@tjingboem5447 3 жыл бұрын
OT, but i see you have 3 display monitors. I'm running Linux Mint for years (thinking about moving to Manjaro) and a NVidia card. Should i put 2 Nvidia cards in my system to get 3 or 4 displays? Will that work?
@tenj00
@tenj00 3 жыл бұрын
What the hell. I find the redundant use of the word "cat" in this video to be bloat and I remain now triggered!
@lovely-shrubbery8578
@lovely-shrubbery8578 3 жыл бұрын
If they're that worried about it, they should only use cat to concatenate files like it was intended.
@code8986
@code8986 3 жыл бұрын
I don't cat into grep, btw.
@PetrosSharp
@PetrosSharp 3 жыл бұрын
I prefer bat, anyway. Especially this way: bat -p
@JMIK1991
@JMIK1991 3 жыл бұрын
Cat was integral part of my Festival script until I learned how to do it better. It is not that simple to replace.
@Jenny_Digital
@Jenny_Digital Ай бұрын
I use cat to combine two 16384 byte files into one 32768 byte file and then burn it to an EEPROM quite regularly… from a BASH script! Oh, and I’m happy about that as it just _works_ for me. Hey kids, does that trigger you? *Good!*
@SB-qm5wg
@SB-qm5wg 3 жыл бұрын
and it's cousin zcat
@CMG78
@CMG78 3 жыл бұрын
people online have this bad habit of correcting people over the dumbest trivial crap like they are trying to show off how smart they are. hint we don't care as we do not know you if some one is using cat in a way you think is wrong or any other trivial shit keep your opinion to yourself.
@samyt681
@samyt681 3 жыл бұрын
Whats up with the audio in this video
@SalahElmousa
@SalahElmousa 6 ай бұрын
I never used Cat command in my terminal because I scared its going to bite me!
@sumnerd69
@sumnerd69 3 жыл бұрын
Nice boomer rant in the... studio? kinda miss the green in this kind of videos regardless, very nice video DT!
@rbettsx
@rbettsx 3 жыл бұрын
I guess there's always !$ .. :D
@Andrath
@Andrath 3 жыл бұрын
Any of my three cats might have a problem with this. ;)
@LeeSmith-cf1vo
@LeeSmith-cf1vo 3 жыл бұрын
I use cat in my scripts all the time. I'm sure that some 99% of those times it probably is "useless" But I really don't care. In the vast majority of cases the difference it makes is going to be negligable. Definitely a case of preumature optimisation there. It probably becomes more important if you are writing a script that will be run by other people and/or in an environment where specific resources (e.g. process count) are at a premium. But this is not most cases.
@MeowieGamer2
@MeowieGamer2 3 жыл бұрын
Which distro do you use
@lucaslopes1260
@lucaslopes1260 3 жыл бұрын
wc -l .bashrc | cut -d ' ' -f 1 There. Count the number of lines without filename and without the use of cat. Nevermind the big workaround, just to prove a point.
@dkosmari
@dkosmari 3 жыл бұрын
Cats are never useful, that's why I'm a dog person. That said, quite a few times, GNU/Linux users have asked me for a program to concatenate files. That's the one use of `cat` that people remember last.
@flow5718
@flow5718 3 жыл бұрын
DT's blazed af 🔥
@user-he4ef9br7z
@user-he4ef9br7z 3 жыл бұрын
It's not so much useless as it is wrong. Cat is for joining files not printing them. That where the name comes from - conCATenate. You could use up arrow just as efficiently without cat by utilising the bash vi mode.
@Not-THAT-ChrisPratt
@Not-THAT-ChrisPratt 3 жыл бұрын
Amen! Preach it, Brother! Linux gives us the Freedom to use cat, aux, sed etc. If ppl want to restrict that, let them go back to proprietary software gulag!
@Thomas-rl8kw
@Thomas-rl8kw 3 жыл бұрын
I've used cat to write iso's to flash drives
@MichaelJHathaway
@MichaelJHathaway 3 жыл бұрын
Useless Use of Rant. Just delete those comments.
@tailsorange2872
@tailsorange2872 3 жыл бұрын
"CAT": MEOW.
So Many Linux Terminal Commands Do The Same Thing
11:37
DistroTube
Рет қаралды 21 М.
Essential Linux Commands - Cat, Tac and Tee
21:07
DistroTube
Рет қаралды 25 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 33 МЛН
Shell Aliases Every Linux User Needs
29:03
DistroTube
Рет қаралды 38 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 744 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 1 МЛН
ThePrimeagen On Running Linux
9:40
Tech Over Tea
Рет қаралды 307 М.
Xargs Should Be In Your Command Line Toolbag
16:24
DistroTube
Рет қаралды 104 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 196 М.
Essential Keybindings For Bash, Fish and Zsh
16:41
DistroTube
Рет қаралды 30 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
Git Annex Is The Coolest Program You've Never Heard Of
17:32
DistroTube
Рет қаралды 31 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН