LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-30-2003, 12:50 PM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14 RedHat 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 455

Rep: Reputation: 30
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...
 
Old 01-30-2003, 12:52 PM   #2
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Open a term and type "df".
 
Old 01-30-2003, 01:05 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14 RedHat 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 455

Original Poster
Rep: Reputation: 30
Thanks...

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

GREAT...
 
Old 01-30-2003, 01:13 PM   #4
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
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.
 
Old 01-30-2003, 01:22 PM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14 RedHat 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 455

Original Poster
Rep: Reputation: 30
Thumbs up

will do,

thanks...
 
Old 01-30-2003, 01:50 PM   #6
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
-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. :_)



Last edited by Wolven; 01-30-2003 at 01:52 PM.
 
Old 01-31-2003, 01:51 AM   #7
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 01-31-2003, 03:17 AM   #8
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
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
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
Disk Usage karan101 Linux - Software 8 10-17-2004 03:59 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 06:24 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
Total Hard Disk Usage kbeaver Linux - Newbie 4 09-03-2003 09:43 AM


All times are GMT -5. The time now is 11:52 PM.

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