Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get the size of files in a directory linux

# Displays all the files and sizes in MB or GB
du -h --max-depth=1
Comment

how to get the size of a file in linux

du -sh filename # gives size of filename
Comment

linux file size

cd dir ; du -hsx * | sort -rh | head -20 
# example output
# 300MB    some_backup_file.log
# 1.8GB    some_huge_file.war
Comment

size of a file linux

ls -lh | grep filename
Comment

linux command for file size

#Get file size of each folder
du -bsh *
Comment

see file size linux

du -h <dir_or_file>
# or
ls -lah
Comment

how to check file size in linux

ls -l filename   #Displays Size of the specified file
ls -l *          #Displays Size of All the files in the current directory
ls -al *         #Displays Size of All the files including hidden files in the current directory
ls -al dir/      #Displays Size of All the files including hidden files in the 'dir' directory
Comment

get size of file linux

du -h your-file.txt
Comment

find the size of file in linux

ls -l filename   #Displays Size of the specified file
ls -l *          #Displays Size of All the files in the current directory
ls -al *         #Displays Size of All the files including hidden files in the current directory
ls -al dir/      #Displays Size of All the files including hidden files in the 'dir' directory
Comment

linux size of files

du -sh *

https://stackoverflow.com/questions/1019116/using-ls-to-list-directories-and-their-total-sizes
Comment

check file size linux

du -shx *
ls -lrt
find ./ -size +100M
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu command history 
Shell :: bash print environment variables 
Shell :: how to uninstall programms on ubuntu 
Shell :: bitnami lamp restart apache 
Shell :: where is my .git config mac 
Shell :: how to install .deb file in ubuntu from terminal 
Shell :: git stash drop item by number 
Shell :: clear bash command history 
Shell :: clone from a specific branch 
Shell :: ubuntu remove directory 
Shell :: powershell append to file 
Shell :: running ports in mac 
Shell :: install saas 
Shell :: ubuntu 20.04 openvpn client 
Shell :: This system is not registered with an entitlement server. You can use subscription-manager to register. 
Shell :: check owner of process id linux 
Shell :: notepad++ kali 
Shell :: purge a software linux 
Shell :: remote: Invalid username or password. github mac 
Shell :: terminator default terminal 
Shell :: how to update powershell version 
Shell :: how to install gatsby with typescript 
Shell :: update pycocotools 
Shell :: how to follow a file url in vim 
Shell :: install firebase npm 
Shell :: list python versions bash 
Shell :: flameshot 
Shell :: flutter doctor android licenses exception in thread main java.lang.noclassdeffounderror 
Shell :: nginx docker redirect no trailing slash to trailing slash 
Shell :: git config global username 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =