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

shell get size of directory

du -h your_directory
# gives you the size of your target directory.
du -hcs your_directory
# If you want a brief output.
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

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

find folder size in linux

df -sh .
Comment

Linux folder size

du -sh /* | sort -h
Comment

check directory size linux

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

folder size in linux

sudo du -sh /var
du -h directory 
Comment

how to get 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 :: install geopandas 
Shell :: git set email and name for repo 
Shell :: git add commit push one command 
Shell :: bash gnome-terminal Unable to init server: Could not connect: Connection refused # Failed to parse arguments: Cannot open display: 
Shell :: drush pm-list of enabled modules 
Shell :: centos start docker 
Shell :: stash untracked files 
Shell :: reset iptables ubuntu 
Shell :: git push to all remotes 
Shell :: sync show progress 
Shell :: git push command line 
Shell :: install dotnet 5 ubuntu 
Shell :: ubuntu create archive split 
Shell :: [ERROR CRI]: container runtime is not running: output: 
Shell :: making file executable linux 
Shell :: ubuntu install without suggested packages 
Shell :: nginx: [emerg] bind() to 0.0.0.0:80 failed 
Shell :: mac anydesk start at login 
Shell :: check jdk version 
Shell :: Live Share not doing anything on linux ubuntu 20.04 
Shell :: ionic 4 install bootstrap 
Shell :: install mongo db ubuntu 
Shell :: powershell grab regex 
Shell :: show applications shortcut ubuntu move right 
Shell :: change wsl to version 1 
Shell :: openssh server ubuntu 
Shell :: bash remove last character 
Shell :: how to search forward in emacs 
Shell :: install geth in ubuntu 
Shell :: install react-native cmd linux 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =