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

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

check folders sizes linux

du -sh -- *
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

check total folder size linux

#and this shows all sizes in that directory/folder
ls -lsh
Comment

how to get directory size in linux

du -h --max-depth=1 /directory
du -sh *
du -sh /directory
du -shx /directory
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

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 :: how to uninstall vscode from terminal ubuntu 
Shell :: ubuntu set new default terminal 
Shell :: uninstall tesseract 4 
Shell :: install hackertyper on linux mint 
Shell :: git stash apply 
Shell :: flutter doctor android license exception in thread main 
Shell :: eslint npm install 
Shell :: origin branch still showing in vscode though deleted 
Shell :: ubuntu check virtualbox version 
Shell :: microstack change horizon port 
Shell :: bash get length of rows 
Shell :: git config 
Shell :: linux list directories 
Shell :: run sudo without password 
Shell :: sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE 
Shell :: install atom in mac 
Shell :: install intellij community edition mac brew commands 
Shell :: remove docker image 
Shell :: hide top bar ubuntu 20.04 
Shell :: database metasploit kali linux 
Shell :: flutter run emulator command line 
Shell :: npm save as dev dependency 
Shell :: Zathura not working 
Shell :: cisco save running config 
Shell :: install elasticsearch ubuntu 20.04 
Shell :: how to cd to a directory with spaces 
Shell :: ruby update single gem 
Shell :: git status just shows directory and not files 
Shell :: bash script: permission denied 
Shell :: laravel install lysystem-aws-s3 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =