How do I check disk space in terminal?
To find out the available and used disk space, use df (disk filesystems, sometimes called disk free). To discover what’s taking up the used disk space, use du (disk usage). Type df and press enter in a Bash terminal window to get started. You’ll see a lot of output similar to the screenshot below.
How do I manage disk space in Linux?
Let’s begin with the df command!
- Check Disk Space in Linux Using the df Command. df, which stands for Disk Filesystem, is used to check disk space.
- Check Disk Usage in Linux Using the du Command. Another important command is du, short for Disk Usage.
- Sorting Files By Size.
- Excluding by File Size.
- Excluding File Types.
How do I free up space on my Linux server?
Freeing disk space on your Linux server
- Get to the root of your machine by running cd /
- Run sudo du -h –max-depth=1.
- Note which directories are using a lot of disk space.
- cd into one of the big directories.
- Run ls -l to see which files are using a lot of space. Delete any you don’t need.
- Repeat steps 2 to 5.
How do I check disk space in Linux terminal?
To discover what’s taking up the used disk space, use du (disk usage). Type df and press enter in a Bash terminal window to get started. You’ll see a lot of output similar to the screenshot below. Using df without any options will display the available and used space for all mounted filesystems.
How to report disk space usage in Linux?
the df command is used to report file system disk space usage using the terminal in the Linux system. It displays total space, used space, and available space. The general syntax of the df command is as follow:
How do I view available disk space in Bash?
Viewing the Total, Available and Used Disk Space Bash contains two useful commands related to disk space. To find out the available and used disk space, use df (disk filesystems, sometimes called disk free). To discover what’s taking up the used disk space, use du (disk usage).
How do I keep track of disk utilization in Linux?
Keeping track of disk utilization information is on system administrators’ (and others’) daily to-do list. Linux has a few built-in utilities that help provide that information. The df command stands for “disk-free,” and shows available and used disk space on the Linux system.