The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Disk Space test10002 HP-UX 1 07-07-2007 11:34 PM
Need to make disk device files match mvizza HP-UX 0 06-01-2006 04:03 PM
Swap Device & Unix Disk Buffer jimthompson UNIX for Advanced & Expert Users 0 11-02-2005 09:45 AM
Disk space? jbarbuto SUN Solaris 4 08-18-2004 08:58 AM
Out of disk space? alfabetman UNIX for Dummies Questions & Answers 4 10-03-2001 04:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-30-2003
alan's Avatar
alan alan is offline
Registered User
  
 

Join Date: Jul 2003
Location: Los Angeles
Posts: 53
Question available disk space on disk device???

Hello,

Can someone please tell me which command to use to determine the available disk space on a given disk device?

I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?

Thanks in advance!

Al.
  #2 (permalink)  
Old 12-30-2003
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
man df
  #3 (permalink)  
Old 12-30-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Alan,

Please read the rules of this site on the newbie page at the top.

Homework is strictly forbidden on this message board.

Please continue to post since you are new to unix, but try to use the search tool first to help you find answers to basic questions.

also, www.google.com is a great way to find out these types of homework related questions.
  #4 (permalink)  
Old 12-30-2003
alan's Avatar
alan alan is offline
Registered User
  
 

Join Date: Jul 2003
Location: Los Angeles
Posts: 53
Re: available disk space on disk device???

Quote:
Originally posted by alan
Hello,

Can someone please tell me which command to use to determine the available disk space on a given disk device?
Thanks for all your replies. I got the answer I was looking for.

Thx!
  #5 (permalink)  
Old 01-02-2004
mbabeli mbabeli is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 14
comands to view the disk usage on a linux/unix box

try this to show you the usage of your hard disk on all users and put them in to a file called space_report.txt in your home directory.

du -s * | sort -nr > $HOME/space_report.txt

or df .
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0