LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-08-2015, 09:09 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
is there a way to see the size of a portion of a file system?


I don't think 'df' accomplishes what I am trying to do.
For example. I have a system with partitions for root, boot, home, and swap. If I wanted to know how much space was being occupied in /var, how could I do that?
 
Old 11-08-2015, 09:13 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,415
Blog Entries: 6

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by mreff555 View Post
I don't think 'df' accomplishes what I am trying to do.
For example. I have a system with partitions for root, boot, home, and swap. If I wanted to know how much space was being occupied in /var, how could I do that?
If I understand your question correctly, /var is just a directory on the / partition, not a partition itself.

To see the space used by a directory use du, something like this (as root or with sudo on most systems):

Code:
du -ks /var
See man du for various options.
 
  


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
[SOLVED] BASH loop to write out file contents with a portion of the file path psanjuan Linux - Newbie 4 10-03-2014 01:27 AM
Any good software to produce file system tree and file size report? ginda Linux - General 1 06-23-2009 04:50 AM
formatting just the Linux portion of Dual Boot system sri Linux - Desktop 4 08-27-2006 01:37 PM
Only load last portion of a file, instead of the whole really big text file 1veedo Linux - General 2 02-20-2006 06:34 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration