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

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

PREVIOUS NEXT
Code Example
Shell :: install keras anaconda jupyter notebook 
Shell :: install k3s 
Shell :: locate command not found 
Shell :: conda install scikit-learn 
Shell :: django-cors-headers 
Shell :: ln phpmyadmin 
Shell :: see git ignored files 
Shell :: run a nuget package restore to generate this file 
Shell :: unity logcat 
Shell :: install docker on debian 
Shell :: ubuntu install libc6-i386 
Shell :: embed a youtube video in github readme 
Shell :: get docker script 
Shell :: pipreqs not working 
Shell :: install rabbitmq on ubuntu 18.04 
Shell :: stop port ubintu 
Shell :: failed to download repository information ubuntu 
Shell :: conda install pyaudio 
Shell :: kubectl autocomplete zsh 
Shell :: ubuntu install iptables-persistent 
Shell :: install gunicorn 
Shell :: Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located 
Shell :: git find when file was deleted 
Shell :: ubuntu install libc6-dev-i386 
Shell :: conda install lightgbm 
Shell :: bash: yarn: command not found 
Shell :: live server vim 
Shell :: list all users linux 
Shell :: rename a commit pushed 
Shell :: how to remove a package in laravel 8 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =