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

show directory size linux

du -sh /home/george
2.1G    /home/george
Comment

how to get the size of directory in linux

du -sh /var
Comment

linux folder size

du -sh folder
Comment

size of folder linux

sudo du -sh /path/to/folder
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

Linux folder size

du -sh /* | sort -h
Comment

folder size in linux

sudo du -sh /var
du -h 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

how to get directory size in linux

du -a / | sort -n -r | head -n 10
5351116 /
2462616 /usr
2153492 /home
2153472 /home/george
1571924 /usr/lib
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 :: Python plot graph in bash 
Shell :: cannot delete branch checked out at 
Shell :: ssl security check ats 
Shell :: nginx stop if proxy_pass is down 
Shell :: create group ubuntu 
Shell :: linux install yarn 
Shell :: allow localhose wsl2 
Shell :: delete mulitple git branch 
Shell :: zsh: command not found: n 
Shell :: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/singh/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5. singh@Singhs-Air ~ % sudo apachectl start 
Shell :: A multi-stage Dockerfile for building nodejs 
Shell :: archive tar 
Shell :: rollback git 
Shell :: djanog shell change password 
Shell :: drop cache ubuntu 
Shell :: install pyenv 
Shell :: how to install zlib 
Shell :: bash see active ports 
Shell :: bash add text to file 
Shell :: multiple git stashes 
Shell :: unmount nfs 
Shell :: extract tar to destination 
Shell :: ffmpeg mkv to mp4 
Shell :: kubectl install on ubuntu 
Shell :: kill process running on port linux 
Shell :: batch write to text file 
Shell :: how to force push heroku 
Shell :: ffmpeg overwrite 
Shell :: ubuntu zip 
Shell :: git push to heroku 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =