Contents
How do I check Linux space usage?
Linux command to check disk space
- df command – Shows the amount of disk space used and available on Linux file systems.
- du command – Display the amount of disk space used by the specified files and for each subdirectory.
- btrfs fi df /device/ – Show disk space usage information for a btrfs based mount point/file system.
How do you check which user is using more space in Linux?
Check Disk Usage in Linux Using the du Command du -sh /home/user/Desktop — the -s option will give us the total size of a specified folder (Desktop in this case). du -m /home/user/Desktop — the -m option provides us with folder and file sizes in Megabytes (we can use -k to see the information in Kilobytes).
What is disk space on a server?
Disk space is the amount of space you get on the server to store the contents of your website. The contents of your website are made up of all the images, texts, CSS and Java files, Flash, etc. It is important to understand that certain files occupy more space than others.
Is there a way to check disk space in Linux?
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: It displays a list of the contents of the current directory, and how much space they’re using.
How can I see how much disk space I have on my computer?
How much disk space I have utilized? The simplest way to find the free disk space on Linux is to use df command. The df command stands for disk-free and quite obviously, it shows you the free and available disk space on Linux systems. df -h. With -h option, it shows the disk space in human-readable format (MB and GB).
How to use DF to check disk space?
The df command provides an option to display sizes in Human Readable formats by using ‘-h’ (prints the results in human readable format (e.g., 1K 2M 3G )). 4. Display Information of /home File System To see the information of only device /home file system in human readable format use the following command.
How do I clear disk space in Ubuntu?
Within the Terminal you can type: Once the password has been entered correctly, the system will start to delete orphaned packages. It can also remove older kernels which take up space and are largely unnecessary. When Ubuntu downloads packages, it keeps the apt files so they can be re-installed easily if needed.