hard disk and directory usage

hello,i'm a beginner in linux.i just want to ask: what is the commands to find hard disk space usage in terminal screen?is it du or df?what is the diffrence between them?and how to know directory usage?what is the command?
and how to count the seek time and search time when we run those commands above?
linux_freakAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yuzhCommented:
df -k

man df

to learn more details
0
linux_freakAuthor Commented:
thank you for your response and answers. and i want to ask does df -k can view the disk usage including the SUB-FOLDER?thank you...
0
linux_freakAuthor Commented:
so, what is the difference between du and df?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

LamerSmurfCommented:
du is 'diskusage' and df is 'diskfree' more or less :)

du -h /home  should give you the diskusage for the entire /home and subfolders.

if you add a 'du -sh' will print you a sum of all the folders without displaying info for each folder.

think using df or du is more or less a habit thing :)

/LamerSmurf
0
JaemCommented:
df: free/occupied space on a mounted filesystem (For example, a partition of your harddrive mounted somewhere).

du: occupied space inside a directory, i.e. how much space do the subdirectories/files inside take.

df is useful to estimate the resources you have left on a mounted partition. du is useful if you need to find what takes large resources, especially if you don't have much space left on a partition.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arn0ldCommented:
i recall on this or a similar forum, the moderator chided the poster for sub-elemental questions. The answer to "whats the difference between to du/df" should be
 
   man du  /  info du
   man df  /  info df
 and if need be,
   man man /info man
   info info

AFIK, all *nix have man and info
0
linux_freakAuthor Commented:
so to see harddisk usage we use df right? and to see directory we use du?thank you...
0
arn0ldCommented:
to verify conclusion
  whatis df
  whatis du
0
linux_freakAuthor Commented:
i see.so, how to count the seek time and search time.example: if i want to count the seek time and search time in processing du and df command above. i just guessing or is there any particular command to count them?thank you
0
CleanupPingCommented:
linux_freak:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
TheWeakestLinkCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split points between Jaem and arn0ld
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.