Issue the command df /dev/sda and the report will only include that drive ( Figure B). Say you need a report on /dev/sda, which is your primary drive on the server. If you want less clutter, check the space for a specific drive. You don’t have to list out every connected drive on your machine. When you issue the command df, it will report the statistics on your file system ( Figure A). This particular command is the one I tend to lean on the most. Let’s take a look at how each command is used. btrfs – reports the amount of space used by a btrfs file system mount pointĮach of the above commands is used for a different purpose and can be used in conjunction with one another for tasks such as locating what files are taking up the most disk space.du – reports the amount of space used by specific files.df – reports the amount of disk space used on a file system. I want to show you how you can check for drive space using three different commands: Good thing is pretty simple–even from the command line. However, have you bothered to check drive space on those servers? If not, do you have any guess as to how much free storage you have left? This is a particular task you need to know. You’ve finally mastered the tools you need to make them do what you want and have found the only maintenance they need is the regular check for updates. Your Linux servers are up and humming like champs. Is your Linux server running out of storage space? If you're not sure how to find that out, these three commands are important to learn. How to check drive space on Linux from the command line
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |