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

Terminal Lesson 9


4m read
·Nov 3, 2024

Mack heads on all.

I'm gonna be showing you some things you can do in terminal. Now, these things are things that you may have had questions about in the past. Now, some of you have, and they involve hard drives, external hard drives, any hard drive. Like, people have had all sorts of problems with them.

First of all, you may remember, realize, and remember Macintosh HD and some other drives you may have are on your desktop. Normally, it's just Macintosh HD. Well, I'm going to be explaining what those actually are. Now, let's get to the bottom of this.

I'm on my desktop directory, right? I typed LS, right? And it comes up with these three results, these three dot no directories, right? Now I can do an LS dash L. D stands for directory; these are all directories.

So, if we look at this though, there are three directories here. I see programs, games, documents, untitled, and Macintosh HD. What the heck is untitled in Macintosh HD? What are they doing on my desktop? Let's explain this.

First of all, they're not actually on our desktop. You can see that Apple wants you to believe they're on your desktop for easy access. You just double-click one like untitled, see everything that's in it? But if we think about it, can't do that here.

Now, I'm gonna do something very special. I'm gonna type LS space / volumes. And you know, it's just the LS command, and there's a directory called slash volumes, right? Right here, Macintosh HD and untitled. You know why those are there? Because that's where the drives actually get “quote-unquote” mounted when they're mounted in the operating system, like UNIX or Mac OS 10, whatever you refer to.

Basically, it places on every byte stream, every drive it's mounting on the computer in slash volumes. And so those are the things in slash volumes. We can also type DF - K, and this is a command that displays display file system - K; that's what the F - K means.

Right here, we can see side steps like this. This is just where it's mounted from. We don't give a crap about that, you know? We don't care about that. But right here under mounted on, see right here, the slash, slash dev, slash dev, slash net, slash volumes, untitled.

Well, let me explain: slash is actually my file system, and that is actually Macintosh HD. You can see it's filled up 25%. That's the available bytes. So, that's bytes, kilobytes, megabytes, gigabytes, or actually that's kilobytes. So that's 157 kilobytes I'm free. It's how much used fifty-two megabytes, etc., on slash.

So, no, this is untitled in slash volumes. You'll notice slash volume slash Macintosh HD is still not in this list. That is because Macintosh HD is really slash, but it's just everything on the hard drive and not Nick and not anything else.

Like, let's say untitled. So we go to Macintosh HD, spell Macintosh HD, right? Won't wait, one second, there we go. So I'm seeing - slash volume slash Macintosh HD. Right here, you can see I'm gonna try to CD to slash volumes, and the stuff is still here.

So now, I’m gonna be showing you how to basically what happens when you plug something else in. You look at my desktop right here, and I'll just move you around for the proper adjustments. I'm gonna plug in my handy-dandy external hard drive right there.

I just plugged it in, and right here comes up no name on my desktop. Wonder what that is? I bet it's a directory. Let's go to my desktop. Oh, I bet it's not actually because I'm smart. Anyway, still see only documents, games, and programs. What the heck are we doing with this on my desktop?

Plus these, but I already explained that. No name is another mounted drive, which is my hard drive. Giving you a DF dash K, you can see all the mounted drives: 30% used, mounted on / volume / no-name.

You can even CD to volumes and then CD - no name and then documents launch 32 dot exe. It's pretty simpler to documents launch 32 dot exe basically everything. So, basically DF - K is showing you all the mountain hard drives, free space on them, capacity they can contain anything.

And LS / volumes will show you all the things mounted in / volumes. Most of the time the operating system mounts drives in / volumes. So if you're ever, like on your desktop or something and you have a little document, like say programs that you want to be in no name, you don't do it CP programs no name or whatever.

Let's see P - R, whatever. You don't do that. Instead, you do programs to slash volumes / no name because no name is actually in volumes. I'm just gonna cancel that CP there. See how much damage has been done to my hard drive? Save me one second, okay?

So I've done that stuff with my directory. Now, another thing is I can gonna CD to volumes. You can unmount something. This probably won't work in this case, but sometimes it does. You have to be root and order to unmount something.

So I'm gonna sudo u mount, u mount basically stands for unmount no-name. And yes, I know what you're thinking: you could use sudo u mount Macintosh HD or sudo u mount slash; that's gonna screw you up. Don't do that.

Anyway, now I'm gonna try to unmount this. Now it might say resource busy; that just means that it's basically in use. If it does say resource busy, just gonna have to take it and drag it into the little trash thing or right-click it and click eject, whatever you prefer.

You're gonna have to use the GUI if unmount doesn't work, and you are root, then just do it through the GUI. And actually, I can do dot slash no-name would be a little better, but whatever. Because now I can do an LS, nothing here in the DF dash K. You see it's unmounted because I unmounted it through the GUI.

So that's mountable file systems. Thanks for watching! I'm glad you had a good time. Subscribe to Mac Head youtube.com slash Mac heads 101 and goodbye!

More Articles

View All
Startup Investor School Preview with Geoff Ralston
So why don’t we just start with the basic facts? So what is Investor School? Yeah, so Investor School is a four-day class that we’re teaching for the very first time here in Mountain View, across the street and in the original Y Combinator of building 32…
15 Services That Will Never Go Out Of Business
According to the World Economic Forum Future of Jobs report, as many as 85 million jobs worldwide are expected to be replaced by artificial intelligence by 2025. Considering how fast this sector is evolving, it’s not far-fetched to say that this number is…
Mesh current method (step 4 solve)
We’re working on the mesh current method of analyzing circuits, and in the previous video, we set up our circuit. We set up our mesh currents flowing around these loops within the circuit, and we solved for the easy currents. That was the, uh, the current…
Mentally WEAK People Share These 15 Signs
Do you have mentally weak friends? What if you’re a mentally weak friend? Well, let’s find out, shall we? Here are 15 signs. Your mentally weak first step. You internalize any negative statements other people make. They define who you are and how you fee…
National Geographic Takes on New York Fashion Week | Fit for a Queen | NYFW
[Applause] Queens is a project about female leadership, not only in front of the camera but behind the camera, telling a story about nature in a new way. And there couldn’t be a better time in history right now to be getting that message across. The titl…
You Can Do More Than You Think | The Growth Mindset
Probably most people know the story about the turtle and the rabbit, in which the rabbit laughed at the turtle because of his slowness. But to his surprise, the turtle challenged the rabbit to a race. Initially, the rabbit thought the turtle was joking, b…