Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-26-2012, 07:15 AM   #1
LQ Newbie
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
Linux User and partition size used by him


I am trying to get particular Users partition details in following format,


Partition path : /home/abc
Now on this partition wants partition usage as,

User - Total partion size Used by him - All partition occupied paths for files/folder

User1 - 1Gb - /home/abc/testA
User2 - 500Mb - /home/abc/testB
User3 - 144Kb - /home/abc/testC

I tried (find /home/abc/ -printf "%u %h %s\n") this works to some extent but it doesn't provide total calculated partition size and there is repetition of user name.

Can anyone help me in this to achieve this.

Appreciate any help.


Last edited by Pchinmay; 04-26-2012 at 07:18 AM.
Old 04-26-2012, 07:37 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Does each user have their own partition, or do you want to know each user's disk space?

du -s /home/abc/*
Old 04-26-2012, 11:14 PM   #3
LQ Newbie
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Linux User and partition size used by him

No each user doesnt have seperate partition in this case. Here each one of them have created multiple directries on abc (/home/abc) project partition. and yes, i need to find out users disk space on this partition along with path details.

du -h /home/abc/* does provide each paths partition disk usage but doesnt support any switch for author.

Is ther any way to get this with the help of "awk" command or any linux cammand with supportitng switches?



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
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM
Linux Partition Size Help vishalwaghmare Linux - Newbie 9 01-01-2003 03:10 PM > Forums > Linux Forums > Linux - Newbie

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