Seth Kenlon Red Hat. Use df to check free disk space on Linux. Find out how much Linux disk space you have left with the df command. Topics Linux. About the author. Archit Modi - OpenStack enthusiast. Linux and Networking guy. Just trying to give my two cents in this billion-trillion dollar "Open Source" world.
More about me. Recommended reading 7 Linux commands to use just for fun. Transfer files between your phone and Linux with this open source tool. Note: The df command only targets a full filesystem. Even if you specify an individual directory, df will read the space of the whole drive. This can address a point of confusion in storage technology. Because of this, a gigabyte hard drive ends up with roughly gigabytes of usable storage. The du command displays disk usage.
This tool can display disk usage for individual directories in Linux , giving you a finer-grained view of your disk usage. Use it to display the amount of space used by your current directory:. Like the df command, you can make du human-readable:. You can simplify the display with the -s option:.
With the second command, you may have noticed a permission denied error message. Use the sudo command to elevate your privileges:. You should now understand how to use df and du commands to check disk space on your Linux system. Remember, to display a complete list of options, use either df --help or du --help.
If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. My questioned is to find the big file for particular date says we have thousand files of in folder with different date and need to find the biggest file of december Have a question or suggestion? Please leave a comment to start the discussion.
Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed. Find Largest Directories in Linux If you want to display the biggest directories in the current working directory, run: du -a sort -n -r head -n 5 Find Biggest Directories Only.
0コメント