LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-13-2005, 12:13 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Home Directory Size?


Is there a way to find out exactly how large my /home/username dir is?

I was wondering to see if this would all fit on a DVD and would I also be able to back this up to DVD? Is there a way to use "cdrecord" to back up my entire home dir? Is that possible?
 
Old 12-13-2005, 12:17 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Code:
du -h /home/username
 
Old 12-13-2005, 12:18 PM   #3
Gort32
Member
 
Registered: Sep 2004
Distribution: Slack!
Posts: 150

Rep: Reputation: 15
du will tell you how much space a directory and all subdirectories are taking up. Use du -m to view it in MB (by default it chooses the best unit so you will get a mix of KB, MB, and GB. du -m -max-depth=1 will limit the output to only one directory deep - the default command spits out a *lot* of output. Finally, piping it to sort may help - du -m --max-depth=1 | sort -g (the -g on sort makes it sort by number, otherwise you get 1, 10, 11, 12...19, 2, 20, 21...etc)

For the burning to CD, look into mkisofs

Last edited by Gort32; 12-13-2005 at 12:19 PM.
 
Old 12-13-2005, 01:04 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by m_yates
Code:
du -h /home/username

Code:
211G     /home/carlos/
Thanks!

Quote:
Originally Posted by Gort32
For the burning to CD, look into mkisofs
Doesn't that make an ISO image rather than a normal backup?
 
  


Reply



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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Limit Users Home Directory Size KrGAce Linux - Newbie 6 10-24-2005 09:48 AM
/home/directory size limit Smokey Slackware 2 11-04-2004 03:11 PM
How to LIMIT my HOME DIRECTORY SIZE??? juliann Linux - Networking 2 07-21-2004 09:08 AM
Mandrake /home directory size Limit problem psyientist Mandriva 9 05-14-2004 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration