Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to check folder size in linux

# show all folder size in the current directory
du -h --max-depth=1
Comment

check folder size in linux terminal

du -sh /home/user/
Comment

check directory size linux

du -sh *
du -sh /directory
du -shx /directory 
Comment

command to check size of folder in linux

du -lh --max-depth=1 --block-size=M | sort -nr
Comment

how to get the folder size in linux

du -sh folder/ 
Comment

get folder size linux

#This shows you the folder size in human readable format

sudo du -sh /folder
Comment

check folders sizes linux

du -sh -- *
Comment

find folder size in linux

df -sh .
Comment

check directory size linux

du -sh *
du -sh /directory
du -shx /directory 
Comment

how to check directory size in linux

du -h --max-depth=1 /directory
du -sh *
du -sh /directory
du -shx /directory
Comment

linux get folder size

df -h .; du -sh -- * | sort -hr

#Filesystem      Size  Used Avail Use% Mounted on
#/dev/sdb2       206G  167G   29G  86% /
#115M    node_modules
#2.1M    examples
#68K     src
#4.0K    webpack.config.js
#4.0K    README.md
#4.0K    package.json
Comment

get Linux directory size

du -sh directory_path
-s, --summarize
         display only a total for each argument

  -h, --human-readable
         print sizes in human readable format (e.g., 1K 234M 2G)
Comment

PREVIOUS NEXT
Code Example
Shell :: rename branch to main 
Shell :: view git username 
Shell :: pi raspi-config 
Shell :: Laravel Rolling Back Migrations 
Shell :: install vs code in ubuntu 
Shell :: install nginix server ubuntu linux 
Shell :: pip install zipfile 
Shell :: ubuntu download yasm 
Shell :: jupyter uninstall 
Shell :: bash split file into multiple files 
Shell :: cmd windows download file 
Shell :: uninstall r from mac 
Shell :: docker remove all image 
Shell :: get gpu device name 
Shell :: no build file in linux headers 
Shell :: bash copy directory 
Shell :: how to install postgresql in manjaro 
Shell :: git new repo instructions 
Shell :: install Geany on Ubuntu 
Shell :: wsl file location 
Shell :: wsl delete 
Shell :: list usb devices linux 
Shell :: nano zsh 
Shell :: get saved password windows 11 
Shell :: install all pack kubectl kubens kubectx 
Shell :: install modules from text file pip 
Shell :: how to install intellij on manjaro 
Shell :: remove all container exited 
Shell :: Port 80 in use by "Unable to open process" with PID 4! 
Shell :: git init repo 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =