LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Hard disk usage... (https://www.linuxquestions.org/questions/linux-general-1/hard-disk-usage-43392/)

plisken 01-30-2003 12:50 PM

Hard disk usage...
 
Is there a good way to see current hard disk usage?

I know there is a graphical usage tool in Gnome, which shows each mount point, but this does not really help.

I'm looking for a similar thing to Right Clicking the drive under Windows...

Thanks...

Allen614 01-30-2003 12:52 PM

Open a term and type "df".

plisken 01-30-2003 01:05 PM

Thanks...

There seems to be more and more commands for Linux that I am totally unaware of.

GREAT...

Allen614 01-30-2003 01:13 PM

A good way to familiarize youself with the different apps is to open /usr/bin and scroll down through the list. Open a term and type "man <appname> for a basic usage.

plisken 01-30-2003 01:22 PM

will do,

thanks...

Wolven 01-30-2003 01:50 PM

-h is a good thing to throw on the end of that, as well.

Example on my system:


df -h
gives:

Filesystem Size Used Avail Use% Mounted on
/dev/rd/c0d0p3 67G 34G 30G 53% /
/dev/rd/c0d0p2 15M 2.9M 11M 20% /boot
/dev/rd/c0d1p1 67G 2.5G 61G 4% /data/audio
/dev/rd/c0d2p1 67G 788M 63G 2% /data/video
/dev/rd/c0d3p1 67G 33M 63G 1% /data/games
/dev/rd/c0d4p1 67G 33M 63G 1% /data/code
/dev/rd/c0d5p1 67G 33M 63G 1% /data/pr0n
/dev/rd/c0d6p1 67G 33M 63G 1% /data/www
/dev/rd/c0d7p1 67G 33M 63G 1% /data/users
/dev/rd/c0d8p1 67G 33M 63G 1% /data/other
//uziel/export 19G 5.2G 13G 28% /mnt/archangels/uziel



I snipped it off a bit. I have a lot of network drives...


ls -lh
-r----- 1 root adm 2.1k Jan 1 06:52 xferreport
-rw-r----- 1 root adm 3.3k Dec 1 06:52 xferreport.0
-rw-r----- 1 root adm 1013 Nov 1 06:52 xferreport.1.gz
-rw-r----- 1 root adm 1.1k Aug 1 07:52 xferreport.2.gz
-rw-r----- 1 root adm 864 Jul 1 2002 xferreport.3.gz
-rw-r----- 1 root adm 754 Jun 1 2002 xferreport.4.gz
-rw-r----- 1 root adm 1.0k May 1 2002 xferreport.5.gz
-rw-r----- 1 root adm 1.1k Apr 1 2002 xferreport.6.gz
-rw-r----- 1 root adm 1.1k Mar 1 2002 xferreport.7.gz
-rw-r----- 1 root adm 1.1k Feb 1 2002 xferreport.8.gz
-rw-r----- 1 root adm 33 Feb 1 2002 xferreport.9.gz




It means "human readable" for those of you who like to read in Kilobytes and Megabytes, instead. :_)



MasterC 01-31-2003 01:51 AM

Well, I wouldn't go all down through /usr/bin and learn about all those files, that'd sure be a long time, and not really worth it IMO. However, I'd look at the fileutil's apps which are:
chgrp, chmod, chown, cp, dd, df, dir, dircolors, du, install, ln, ls, mkdir, mkfifo, mknod, mv, rm, rmdir, shred, sync, touch and vdir

Check out the man on those, they will be the "common" apps for you.

Cool

alinas 01-31-2003 03:17 AM

Other way to find available commands on a subject is to run
man -k <keyword>. Try man -k usage, and you'll see what I mean.
It scans database of all commands, and shows one-line description. Initially all commands indicated to belong to section (1) and (8) are of interest to you, most of the rest are entries for programmers and developers.

cheers,
alina


All times are GMT -5. The time now is 05:21 PM.