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 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 linux

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

PREVIOUS NEXT
Code Example
Shell :: open cmd with size 
Shell :: git update upstream url 
Shell :: changing mac address linux 
Shell :: vite react + eslint 
Shell :: arch linux remove nodejs 
Shell :: unistall openshot ubuntu 20.04 
Shell :: install protonvpn debian 
Shell :: how is linux 
Shell :: git delete remote branch error: unable to delete remote ref does not exist 
Shell :: readline/readline.h: No such file or directory 
Shell :: service account credentials gcp token 
Shell :: install node red in widnows 
Shell :: list of unmerged branches 
Shell :: notebook upgrade with conda 
Shell :: open bullet 2 installation on kali linux WEB 
Shell :: permission denied while installing npm 
Shell :: Running Laravel Application On Another Port 
Shell :: how to start a web server linux 
Shell :: mac delete node_modules 
Shell :: where to find .bashrc on mac 
Shell :: github desktop brew 
Shell :: test ssh connection 
Shell :: read password bash 
Shell :: Error relocating /usr/bin/curl 
Shell :: failed to get canoncal path of airootfs 
Shell :: git stash clean command 
Shell :: linux remove folder 
Shell :: how to uninstall vscode from terminal ubuntu 
Shell :: Ubuntu 18.04 Mouse right click not working 
Shell :: how to debug a specific pod when Replication controller is doing load balancing 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =