LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-23-2004, 01:07 AM   #1
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
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
 
Old 04-23-2004, 01:15 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
find /home/myfiles -size +1953 -print

1953 blocks * 512 ~ 1 MB
 
Old 04-23-2004, 03:24 AM   #3
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
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.
 
Old 04-23-2004, 04:43 PM   #4
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
err

Early this morning, I distinctly saw the words "find all files over 1 megabyte". Maybe I shouldn't try posting past my bedtime.
 
Old 04-23-2004, 06:41 PM   #5
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
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! ;-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user & group quota !! hitesh_linux Linux - General 1 11-14-2004 06:16 AM
Directory Quota? j_miguel_y Debian 1 06-19-2004 08:12 PM
Quota Questions!!! Pls. HELP!!! swmok Linux - Software 1 11-03-2003 11:40 AM
File & directory questions Joe47 Linux - Newbie 2 02-16-2003 01:29 AM
set user quota size juno Linux - General 2 10-25-2002 03:42 AM


All times are GMT -5. The time now is 09:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration