LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   directory size & QUOTA questions... (https://www.linuxquestions.org/questions/linux-newbie-8/directory-size-and-quota-questions-173586/)

hct224 04-23-2004 01:07 AM

directory size & QUOTA questions...
 
Hi all,
what command do I use to check size of files in 1 directory(ie. /home/myfiles/)?

and I'm looking for a good tutorial talk about QUOTA(ie install/setup...) to user with my RH linux box. Does anyone know?
Thanks

Jerre Cope 04-23-2004 01:15 AM

find /home/myfiles -size +1953 -print

1953 blocks * 512 ~ 1 MB

Technoslave 04-23-2004 03:24 AM

err...jerre?!

hct, you'll want to look at a couple commands...one is ls -l ( <- that's a lower case L ) ;-)

Also, you'll want the du command.

du -ks . ( gives size of directory and it's contents )
du -ks * ( gives size of files and of directories ).

As for quota...is there really a reason, any more, to have a quota system? In this day and age of personal set-top servers with 100s of gigs of HD space for pennies a gig? If so, I'd check out man quota, and then do a google search for "howto quota", as I don't recall off the top of my head as to how to set it up.

Jerre Cope 04-23-2004 04:43 PM

err
 
Early this morning, I distinctly saw the words "find all files over 1 megabyte". Maybe I shouldn't try posting past my bedtime.

Technoslave 04-23-2004 06:41 PM

Heh, happens to the best of us...I had to look over his post a couple times too to make sure that's not what he was talking about myself! ;-)


All times are GMT -5. The time now is 08:23 PM.