LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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 07:18 AM.
 
Old 04-26-2012, 07:37 AM   #2
jschiwal
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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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