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
Business Lessons From The Ancient Greeks
Business today is much more than just making profits. In fact, companies are now expected to have a positive impact on society, the environment, and the lives of their employees. And what better way to do that than through philosophy? One of the best ways…
Do pineapples grow on trees? - Smarter Every Day 9
[Music] [Music] Okay, so you’re walking through the tropical rainforest, or at least what looks like it, and you come across a pineapple grove. These are what pineapples look like when they’re growing. This is a one that’s not very mature; you can see th…
Why Warren Buffett Doesn't Invest in Gold
If you will reach in your pocket, I don’t like to do this, but, uh, and pull out your wallet, this is you’re watching a historic event. If you look at this, and I might point out this is a one Charlie carries. On the back of it, it says, “In God we trust…
How to Build Self-Discipline: The Stoic Way | Stoicism for Discipline
Today’s internet landscape bombards us with motivational quotes and videos which are intended to inspire and get things done. But motivation only gets one started; to accomplish something, we need to put in work. Working towards a goal requires effort and…
Steve Jobs on Consulting
I mean, you guys, most of you come from companies where you’ve had work experience, right? How many of you are from manufacturing companies? Oh, excellent! Where the rest of you from? Okay, so how many from consulting? Oh, that’s bad; you should do someth…
Decimal multiplication place value
This is an exercise from Khan Academy. It tells us that the product 75 times 61 is equal to 4575. Use the previous fact to evaluate as a decimal this right over here: 7.5 times 0.061. Pause this video and see if you can have a go at it. All right, now le…