Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

file ownership and usage summarie

Hi All.,
I am a greenhorn here.I have Linux 8(2.4.18) on my machine.
I need to output summarise the number of blocks used by a user.
Somebody told me about the UnixWare command quot but I believe that is nonexistent in Linux.
Can Somebody help me perform the same in linux.Right now I use "du -ks" to output the number of blocks.
Thank you in advance
-Paddy
0
peepz
Asked:
peepz
  • 2
  • 2
1 Solution
 
peepzAuthor Commented:
The required output format would be something like the mount
/dev/dsk/xxx (/lvol)
362545   root
4636     user1
345      user2
/dev/export/home (/home)
362545   root
4636     user1
345      user2
...so on for all entries the file system table
0
 
NMiCommented:
You have to install quota support for the filesystem that you wish to monitor. Then you should be able to output this information using 'repquota' command. In your documents you should be able to find some QUOTA-HowTo.
0
 
peepzAuthor Commented:
I do have the quota option but the point is repquota is inadequate in the sense it doesnt provide me the complete data like quot.Also I have a legacy script which is used to the format I set above.
Alternatively do you think having a shell script which runs repquota and then outputs the same format as quot would be a solution?
Thanks for the response though
0
 
NMiCommented:
Quota package supplied with systems like RedHat is considered more than adequate for absolute majority of Linux users. Of course, if you're using some legacy scripts, you can adapt output of repquota to old standards with, say, awk script. That shouldn't be hard to implement.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now