PDA

View Full Version : File - Folder Size in linux



mitto
10-29-2006, 11:42 AM
If you want to know file/folder size every time then use below menthod:


root:~# du -h --max-depth=1

You could create an alias in .bashrc file and use it.


alias fs='du -h --max-depth=0 $1' #fs=foldersize -requires ONE input


root:~#fs log
4.1G log

Oracle
05-17-2009, 02:36 AM
hmm… linux whatever also in command line, it really make me uncomfortable, i even need to issue a command to check a directory size.....

RH1
05-17-2009, 11:11 AM
Actually linux commands are pretty nice, powerful to so yeah you have to be very careful.

thewebhostingdi
08-10-2009, 04:20 PM
Use following command to see disk usage of directory in MB. (Megabytes)



root:~# du -sh directoryname

gosgirl
08-14-2009, 10:54 PM
Thanks so much!