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
What Happens If You Destroy A Black Hole?
Black holes can destroy everything – but can they be destroyed? What happens if we push physics to the absolute limits, maybe even break it and the universe in the process? Let’s create a tiny black hole, about the mass of our moon, in the Kurzgesagt Labs…
Blacksmith for Barter | Live Free or Die
Gonna be a hot one today in the mountains of Colorado. Primitive blacksmith Derik fires up his forge to nearly 2500 degrees, the ideal temperature to mold iron. Today I’m gonna continue working on my camp set, try to finish that out—four more pieces beca…
See How Termites Inspired a Building That Can Cool Itself | Decoder
In 1991, architect Mick Pearce had a problem. An investment group in Harare, Zimbabwe, hired him to design the largest office and retail building in the country. But they didn’t want to pay for the expensive air conditioning needed to cool such a large bu…
How do QR codes work? (I built one myself to find out)
When QR codes first came out, I thought they were awful, never going to catch on. This is a flow chart from the time that really resonated with me. The problem as I saw it was that QR codes are ugly, and they mean nothing to people. I would rather just se…
A Quick Guide to Stock Market Investing (For Complete Beginners)
[Music] Hey guys, welcome back to the channel! We’re continuing on with the new money advent calendar. Today, I’m going to keep this video quite short because, let’s be real, you’ve been seeing a lot of my face over the past couple of weeks. So, in this…
The CEO Who Pays Employees to De-Locate From the Bay
I haven’t started with questions from Twitter before, but I feel like they kind of covered some of the initial ones I wanted to go off with, uh-huh. So maybe we should just go with those. All right, so the first one was from Ben Thompson, and he asked fo…