 Okay Today's tutorial is going to be on using the program file to learn about your partitions A lot of you may be familiar with the program file like so File basically gives you information on files. So actually let me move into my temp directory here I've got some images here. Let me see. I think I've got some PNGs. Okay, so here are some PNGs. Obviously, I know they're PNGs, but we can type in file and then the name of the file and I'll tell you that it's a PNG It gives you the resolution Tells you you know about just information on the file and we'll do the same for most file types So even if you don't have the extension on the end, let's say Let's say I move that file system icon PNG to just Icon With no extension. I should be able to use file and Then give it the file name and even though we don't have the extension we can tell what type of file it is This is a great when you're trying to recover files or for in a lot of different scenarios You're trying to get information on a file And it's not just images any type of file that it's familiar with it should be able to get you information on But I've recently found out that it can also tell you information about your hard drive partitions so let me move into my Device folder so my dev folder and I'm gonna list out here all my SD So these will be all my hard drives which right now. I only have one hard drive in but if I had a flash drive or an SD card or Multiple hard drives within my Computer they would all be listed here now And you can see SDA is my first hard drive and then the partitions I have are One two three and five Now I could mount those and I could find out information about them And I believe I've done tutorials and other tools to find out information about them file is a nice tool That's it's all in pretty much every Linux system that you're gonna come across it's it's basic on a basic install it should be there and You have to be rude to be able to read these partitions, but if we do sudo File which is our command and then dash s and then we'll say SDA one for my first partition. It's gonna ask for my password since I'm using sudo Type in my password properly and it tells you here that this is a linux ext4 file system tells me the uuid which is a you know if I had given a Label names that I believe that would show up there And then it just tells you a little bit information about that that partition now We can obviously do the same thing for other partitions. So let me try like five here, which is my swap partition It tells you that it's a linux swap partition It just gives you some there's no label for this one unlike this one which had a randomly generated Oh, I guess you got uuid and label are different forgive me about saying that wrong so Now let's say you want to check multiple partitions. You could do something like this. I can do Brace expansion I can just start saying Like this 6789 obviously, I don't have that many partitions. We already know I don't have that many partitions So we'll get errors on the ones that don't exist But here you can see SDA one and it gives the information on that SDA two and three there is no four so we can error no such directory same for six seven eight and nine Now here We're just listing out numbers if you've watched my tutorial embrace expansion and if I remember maybe I'll put a link and Annotation to that video in here. We could do one dot dot nine or where we want to start basically It will replace this with all numbers from one to nine or whatever numbers I input So I could hit enter on that and we get the same output as we did before putting in all the numbers There's a little bit shorter way to write it Let's say I I just want to see those first three. I can go dot-dot three So we'll do one through three. So basically we're saying pseudo. We've got to be either pseudo or root We're in the program file with the option of S We're checking the hard drive SDA and then we're checking the partitions one through three and there we go Real quick, we'll check out the man file, which will give us more information on the program file so man file and if we do forward slash dash s In space I can jump down here. I'm going to go to the second place. Okay. So here it shows us exactly what we just Did and it gives us example output. I love Man files to give example file examples of the commands it makes things very clear not all man files do that This one does so definitely, you know, read up on file. You can learn a lot more about it just by looking through the man file And that's pretty much it for this tutorial. I thank you for watching. I hope that you have a great day Please visit filmsbychrist.com. That's Chris with a K There should be a link in the description If you like my tutorials be sure to subscribe if you like the content of certain videos Be sure to like them so I know what people like Definitely seems like my shell tutorials are probably my most popular tutorials So definitely be doing a lot more on those and I just thank you once again for watching and hope that you have a great day