Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash how to check free disk space in Linux

# Basic syntax:
df -h
# Where the -h flag ensures a "human readable" format
Comment

how to check hard disk space linux

df -hia
or
df -h
Comment

how to check free space in linux

df -h /
Comment

check disk space linux

lsblk -f
fdisk -l
parted -l
Comment

how to check disk space in linux

df -kh
[OR]
df -H
Comment

check disk space linux

df -a
Comment

check disk space linux

df -hi
Comment

check disk space linux

df -h shows disk space in human-readable format
df -a shows the file system’s complete disk usage even if the Available field is 0
df -T shows the disk usage along with each block’s filesystem type (e.g., xfs, ext2, ext3, btrfs, etc.)
df -i shows used and free inodes
df -t, –type=TYPE : limit listing to file systems of type TYPE
df – check disk space
du – check disk space for file or directory
df is a standard Linux command used to display the amount of available disk space for file systems.
du is a standard Linux command used to estimate file space usage—space used under a particular directory or files on a file system. The du command summarizes disk space used for each FILE and/or directory.
Comment

check disk space folders linux

sudo du -sh /var
Copy
Comment

how to check whats using my space linux

sudo ncdu 

Reference:
https://www.cyberciti.biz/open-source/install-ncdu-on-linux-unix-ncurses-disk-usage/
Comment

check disk space linux

du -h --max-depth=1 /var/lib/docker/containers/
du -sh /var/lib/docker/containers/
Comment

PREVIOUS NEXT
Code Example
Shell :: pip command to install yaml 5.1.2 
Shell :: git bash anaconda 
Shell :: npm postgres 
Shell :: docker fatal: not a git repository (or any of the parent directories): .git 
Shell :: unzip command in linux 
Shell :: remove local images 
Shell :: github jabba 
Shell :: zsh: command not found: protoc mac 
Shell :: count number of files in directory linux 
Shell :: git remove file from history 
Shell :: permission exec linux 
Shell :: ping in cmd 
Shell :: downgrade cocoapods in mac m1 
Shell :: awk if else 
Shell :: powershell delete folder contents 
Shell :: dns_probe_finished_nxdomain linux ubuntu 
Shell :: install docker wsl 
Shell :: a script that generates the assembly code of a c code and save it in an output file 
Shell :: git push all tags 
Shell :: gh login with github 
Shell :: script to kill a process in windows 
Shell :: apt install force 
Shell :: how to put value of one variable into another in bash 
Shell :: git reset back to previous pushed commit 
Shell :: search file in linux terminal 
Shell :: Kali free ports 
Shell :: ubuntu install tar.xz 
Shell :: git log show diff 
Shell :: adonis make migration 
Shell :: To stop all running docker containers 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =