![mg system managing gigabytes mg system managing gigabytes](https://getintopca.com/wp-content/uploads/2019/02/Milestones-Professional-2017-Rev-2019-Free-Download-3-3-300x215.jpg)
![mg system managing gigabytes mg system managing gigabytes](https://ars.els-cdn.com/content/image/1-s2.0-S0360835220301261-gr10.jpg)
Then, I'll look for object of type file with a size greater than two megabytes. I'll type find and then a slash for the root of the file system. Rather than hunting around for big directories and trying to peer down what files contribute to the size of the folders, we can use the find command to look for large files. A third way of looking at space is to find files larger than a given size. And there's some interesting tools based on du like duviz, dutree, and ncdu, but they're not part of the standard complement of tools so I won't go over them here. So du is good for exploring how much space a file or a directory takes up. I'll run that, but if we just want the size of the directory, we can tell du to go zero directories deep with du -hd0 /etc and we can get the same result with du -sh and the path. We'll get the summary of the sizes for each directory that's one level deeper than etc and this can be useful.
![mg system managing gigabytes mg system managing gigabytes](https://images-na.ssl-images-amazon.com/images/I/41xd-UBxYmL._SX371_BO1,204,203,200_.jpg)
It'll still add up everything inside those directories, but we won't see a line for each deeper item. I set that to 1 so whenever du finds a directory, it goes to maximum depth of one directory. The h option displays the sizes as human readable instead of as blocks. So we can use a few options to make this a bit easier to read. du reports the size for each file and it recurses into directories and that can be useful, but here it's kind of annoying. Let's take a look at the etc directory to see how much space it takes up. To do that, we'll use the du command followed by some options and the path to look at. To take a look at storage on the system from the other side so to speak, we can see how much space a certain file or directory takes up. And here I can see that isolated from all of the other things. I'll write df -h and slash for the root file system. We can use also use the command with the path to show just one file system to narrow down the display a little bit. Here, I can see that I have 87 gigabytes available of the 98 gigabytes available on my root file system. I like to use it with the -h option for human-readable sizes. The first tool I want to show you is df and it gives you very high-level view of how much space is available on your file systems. In this episode, I want to show you a few tools to view the available space and to find large files that you might want to keep an eye on if you're running low on disk space. On any system, managing the available storage space is important.