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
Why You Should or Should Not Work at a Startup by Justin Kan
In a moment, I’m gonna introduce our first keynote speaker, Justin Kahn. Justin is the founder of three YC companies. He is now running a company called Atrium, which we’re gonna hear about later this afternoon. But before that, he was the founder of Just…
SCIENCE! What is the Rarest Precious Metal?
Hey, Vsauce. Michael here. And I’m in Anaheim at VidCon. I hope to see some of you here, because I like you guys. But I can’t marry all of you. But if I did put a ring on it, what is the most precious thing you could make that ring out of? Silver, gold, p…
How I Escaped Corporate Hell (They Don't Want You To Know This)
Speaker: To raising your vibration, this is the video version of my podcast. If you want the audio version you can click the link in the YouTube description. Apologies guys, if you’re listening on the audio that was a YouTube intro and vice versa. If you …
Neuromarketing: You're Being Manipulated
This video is sponsored by The Daily Upside, a free business and finance newsletter delivered every single weekday. Nowadays, it seems to be a common theme amongst almost everyone to go out and shop our way to happiness. You know, just to take care of our…
Personal rights of citizenship | Citizenship | High school civics | Khan Academy
One of the chief responsibilities of the U.S. government is protecting the rights of citizens. But what are those rights? The extent of and limits on rights can be very complex. That’s why we have constitutional lawyers and Supreme Court cases to decide w…
for loops with range() | Intro to CS - Python | Khan Academy
When we write a standard while loop, we need an assignment statement to initialize our loop variable to a start value and an assignment statement to update our loop variable on each loop iteration. In many cases, though, our loops are just counter-based, …