yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

List All Of Your Files


2m read
·Nov 3, 2024

Macons, ah, no one here today. This is going to be a brief terminal lesson on how to, um, basically add a listing of every file on your computer to one file. That way, you'll be able to click “find” that file you're looking for, a specific one.

Okay, so I'm going to just open Terminal, so wait one second.

Okay, and then you want to do is you want to type the following command: CD Desktop. CD space Desktop. Put that in the description. Then you type—just make sure I'm in the right place. Now we can type the following command: LS space dash L capital R space / space greater than symbol. So that's shift period, and then let's call it file list dot txt.

It's going to list every file that I have permissions to read into file list dot txt. I've already made one just to demonstrate while it's loading, called files dot txt, and this will take a long time, by the way.

Anyway, here's files dot txt. This has every file on my computer in it, so you can see all these folders and applications, a few other things. There is a whole load of stuff you’ll see in here.

So yeah, so you'll get a few permissions denied here unless you're root, but I'm not root, so… Okay, so now this is going to take a very long time, so I'll just do a cut here.

Loads. So there we go, looks like it's created it here. So let's take a look. Yep, here it is. So here's the file list. Now I can click “find” for an application like—let's look for, say, intro introduction at HTML.

So you can click “find” through all your files till you find the file you want. That's pretty cool. It's just really nice to have every file on your hard drive in this one file.

So thanks for watching, Mac heads. Um, subscribe and goodbye.

More Articles

View All
Should You Eat Yourself?
Hey, Vsauce. Michael here. And Jake. And Kevin. And we are in Santa Monica, which of course means that the “V” in “Vsauce” will stand for the Roman numeral five, as in five questions from you guys. Our first question comes from “@notch”. He didn’t ask th…
Where No Grid Has Gone Before | Breakthrough
We don’t go to them and say, hey, we’ve got electricity. We’re going to bring it to you. We’re going to bring you modern entertainment that electricity provides, no. They’re coming to us and saying, we’re so far off the grid, we don’t have any electricity…
Consumer protection | Scams & fraud | Financial literacy | Khan Academy
So one thing to think about as you think about your own financial literacy is what do you do in a situation where you try to interact with some type of a business or a financial institution, and they either are misinforming you in some way or they’re not …
Warren Buffett: How to Invest Small Amounts of Money
So it’s no secret that if you’re watching this video, you probably want to be a billionaire just like Warren Buffett. But believe it or not, if you have a relatively small amount of money in your portfolio, you actually have a huge advantage over Buffett …
it's time to LET GO of these type of "FRIENDS"
Show me your friends and I’ll show you your future. You’re the average of the five friends you spend the most time with. That’s real. If you’re trying to get your life together and your friends get in the way, that’s actually useful for you because you’ve…
Interpreting points in context of graphs of systems
We’re told that Lauren uses a blend of dark roast beans and light roast beans to make coffee at her cafe. She needs 80 kilograms of beans in total for her next order. Dark roast beans cost three dollars per kilogram, light roast beans cost two dollars per…