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
The key to better quality education? Make students feel valued. | George Couros | Big Think
GEORGE COUROS: Schools are doing emergency remote teaching, and that’s what I’ve been calling it because this is not virtual learning. This is not remote learning. It’s something totally different. Through this time, really the connection that we actually…
A.I. ‐ Humanity's Final Invention?
Humans rule Earth without competition, but we’re about to create something that may change that: our last invention, the most powerful tool, weapon, or maybe even entity: artificial superintelligence. This sounds like science fiction, so let’s start at th…
Is everyone's voice being heard? How majorities can be allies to minorities | Bill Doherty|Big Think
Bill Doherty: We now have much more diverse workforces than we used to in the old days, when they were mostly men, for example—not many women and more white people than people of color—and so here’s a question that’s a little bit riskier, but I think coul…
Jordan Peterson’s Online University
Why did I decide to build an online university? Well, there is a crisis now in higher education. The president of Harvard University resigned today, weeks after calling for the genocide of Jews, violating pens of code of conduct. We have a problem of affo…
Sex in Ancient Rome: Behind the Tales of Wild Eroticism, a Different Truth | Mary Beard | Big Think
Sex is one of the things that has always absolutely enticed us about the Roman Empire. And the Roman Empire is always represented as the place where people did frightful things and where, in a sense, there were no sexual rules. Anything went. Everybody ha…
Free Speech and the Satirical Activist | Andrew Doyle | EP 178
[Music] Andrew Doyle is with me today. Andrew is a British comedian, playwright, journalist, political satirist, and author who co-created the fictional character Jonathan Pie and the equally, or perhaps even more, fictional character Titanium McGrath. He…