LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-26-2012, 08:15 AM   #1
Pchinmay
LQ Newbie
 
Registered: Apr 2012
Posts: 2

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


Hi,

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

Example,

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
/home/abc/testA
User2 - 500Mb - /home/abc/testB
/home/abc/testB
User3 - 144Kb - /home/abc/testC
/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.

Thanks!

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

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

du -s /home/abc/*
 
Old 04-27-2012, 12:14 AM   #3
Pchinmay
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?

Thanks!
 
  


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


All times are GMT -5. The time now is 10:55 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