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

show directory size linux

du -sh /home/george
2.1G    /home/george
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

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 :: What should you run to modify your last commit? 
Shell :: ubuntu show line in file containing text 
Shell :: check if variable is a number in bash 
Shell :: add ssh to already cloned repo 
Shell :: ubuntu 20.04 uninstall all games 
Shell :: npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli 
Shell :: see dhcp leases linux 
Shell :: ubuntu darling 
Shell :: install ionic cli specific version 
Shell :: mac os generate public key from private key 
Shell :: gitignore doesnt delte remote files 
Shell :: install curl 
Shell :: retroarch for ubuntu 
Shell :: linux create user 
Shell :: dump cache ubuntu 
Shell :: powershell create symlink 
Shell :: git command create new branch from current and move changes 
Shell :: graphql install 
Shell :: gitignroe remove folder 
Shell :: dotnet clean nuget cache 
Shell :: how to install ansible in centos 
Shell :: error could not lock config file .git/config permission denied ubuntu 
Shell :: ffmpeg convert mkv to mp4 
Shell :: how to remove node modules from github 
Shell :: ubuntu grub repair 
Shell :: ubuntu cmd firewall give access to port 
Shell :: install poetry 
Shell :: live-server command 
Shell :: npm install from github branch 
Shell :: push heroku 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =