Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-12-2007, 11:51 AM   #1
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
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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

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

Rep: Reputation: 0
Hello ghost..

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




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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration