LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-12-2007, 11:51 AM   #1
izrafel
LQ Newbie
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
how can i find space consumed by this user


how can i find space consumed by this user?
 
Old 06-12-2007, 11:59 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try
Code:
du -h /home/{USERNAME}
 
Old 06-12-2007, 07:07 PM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
use the find command to find all files that belong to user and then total up the byte count
Code:
find / -type f -user -ls | awk '{count+=$7}END{print "total bytes: "count}'
 
Old 06-15-2007, 04:21 AM   #4
diptanjan
LQ Newbie
 
Registered: Jun 2007
Distribution: Redhat, Suse
Posts: 8

Rep: Reputation: 0
Hello ghost..

Quote:
find / -type f -user -ls | awk '{count+=$7}END{print "total bytes: "count}'
I tried this command...

I think you have missed the username option after -user.

find / -type f -user USERNAME -ls | awk '{count+=$7}END{print "total bytes: "count}'

correct me if I am wrong

Thanks

Diptanjan
 
  


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
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 10:15 PM
Space "consumed" by ReiserFS: is ext3 better for small partitions? 3point2 Slackware 3 01-30-2006 08:48 AM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 11:46 AM
Where can I find a simple tutorial on quota (limit capacity of disk space of a user)? George2 Linux - Software 5 11-04-2003 08:56 AM


All times are GMT -5. The time now is 04:07 AM.

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