 I think this video is going to be a quick one. Today we're going to be looking at a tool called Tune2FS. If you enjoy my tutorials and would like to see more, please think about contributing to my Patreon account at patreon.com forward slash metalx1000. Tune2FS, I think we used it before for labeling hard drive partitions. I think that's what we used it for in a previous video. And it's used to get file information into Tune file systems for EXT formatted partitions, EXT2, 3, 4, so forth, and so on. Today we're just going to get some information. So I can say, and you do need to be root or pseudo for some of the functionality of this. So we're going to say pseudo Tune2FS dash list. FS is for file system, by the way, or dash L for a list. And let's give it a hard drive. I'll just say SDA1, or a partition, I should say. We're going to give it a partition. Type in my password, which I think I typed wrong. And I will type again. OK, so it gives a bunch of information on your hard drive here. Great. But let's say that we want to get, when this partition was created, we can say grep dash I created. And it brings up the line when it was created, which actually looks like I did this install on my birthday. So yeah. So that's great. Very simple right there. Look at this partition, give me the information, and then grep to grab just the date it was created. Let's say we want to do it for whatever our root file system is. We just want to create a script that whenever we run it, it will tell us whatever our root file system is. Now we could say, put into the script what our root file system is, because your root partition could be SDA 3 or 5 or 4 or whatever you set it to. So let's just take this another step further and use some tools that we've used in the past, put them together, and create a one-liner that will always check the root file system, whatever is mounted as root. And I'm sure there's multiple ways of doing this. In fact, I have two in my notes, two different ways of doing it. But we're going to take basically what we have here. But the big part is going to be this part. That'll probably just delete it, because we need to figure out, well, what partition is it? So one way we can use the DF tool. DF tells you information about your hard drive and the space it's using, how big it is, how much it's used, and how much is available in the percentage. Also tells you where it's mounted. And if we were to say DF forward slash, it gives us the information on what is mounted as root. So we can use that, and then we can use this right here. So this is another way of saying where the partition is. We're saying look under devices, look at our disk, look at them by their UUID. And then this one has a UID of that, because I never change it. And that's just the fault that was issued to it. So what we need to do there here is grab just this and get rid of the rest. And again, there's a few different ways to do in that. But what I'm going to do is I am going to say pipe it into Ock. And then I will use Ock to print the first column. So here we got that. We still have this first line. I'm sure there's a built-in Ock option, but I'm just going to use tail. Tail will read the end of the file. I'll say read just the one line at the end to the last line. That will give us what we need. So now we can take this, which tells us what partition is, our root partition. And I can wrap that in parentheses with a dollar sign at the beginning. Remember, that means whatever command is in here, take whatever the output is and replace it here. So now I can go back and say pseudo tune to FS dash L with that there. And it will give me the information on whatever my root partition is regardless of what number partition is, whether it's SDA1, SDA2, SDA3, or SDB1, SDB5, whatever it is, wherever it's placed, it doesn't matter. It should, in theory, find it there all the time. And again, if we wanted to find out just when it was created, we can say grep created. And there we go. Before I did dash I, because off the top of my head I couldn't remember, dash I says case insensitive. So in case this was a capital C, it would have still found it. But now that I realize that it's lowercase c, it doesn't matter. I can do that. Boom. Now I can put this as an alias or in a script or just in my history in Bash or whatever. I'm actually not using Bash in the tutorial. I use a different shell as my default shell. But whatever, as long as these tools are all here and these are pretty standard tools, tail, awk, grep, and tune to FS, these are all standard tools. So this should work. And at any time I can run that and find out when I created the partition of my root file system. So a little quick tip there. You might find it useful for this, but hopefully just showing how these different tools can be placed together might have given you some other ideas. I hope that you do enjoy my tutorials. If you do, think about contributing to my Patreon account on patreon.com. slash metalx1000, help support and give you more input on the videos I create. And I hope that you enjoy this video. Future videos visit my website, filmsbychrist.com. It's Chris with the K. It should be a link in the description to that and my Patreon page. And I hope that you have a great day. And I've got the new resistor. And before I open the old one and put this in, I'm going to plug this one in, because it should work just hanging here, doesn't have to be screwed in.