<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: which user uses maximum disk space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608258#M824533</link>
    <description>You can use script like,&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;total=$(find /home/ -user root | xargs ls -l | awk 'BEGIN {size=0;}{size+=$5;}END{print size;}')&lt;BR /&gt;echo "root user is using $total size in /home"&lt;BR /&gt;for user in `ls /home/ | grep -v 'lost+found'`&lt;BR /&gt;do&lt;BR /&gt;  id $user 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;  if [[ $? -eq 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;    total=$(find /home/ -user $user | xargs ls -l | awk 'BEGIN {size=0;}{size+=$5;}END{print size;}')&lt;BR /&gt;    echo "$user is using $total size in /home"&lt;BR /&gt;  fi  &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Mon, 22 Aug 2005 02:08:20 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-08-22T02:08:20Z</dc:date>
    <item>
      <title>which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608252#M824527</link>
      <description>Dear Sirs/Madam;&lt;BR /&gt;&lt;BR /&gt;I want to find out which user is using maximum disk space in /home directory file system.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell which command i should use ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Sun, 21 Aug 2005 22:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608252#M824527</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-08-21T22:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608253#M824528</link>
      <description>cd to /home directory and run&lt;BR /&gt;du -ks *&lt;BR /&gt;This will show you the sizes of each directory (which is users home directory) with their sizes in KB</description>
      <pubDate>Sun, 21 Aug 2005 22:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608253#M824528</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2005-08-21T22:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608254#M824529</link>
      <description>If directory is root of the filesystem you can use quot(1M).&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/quot /home&lt;BR /&gt;&lt;BR /&gt;It will produce disk usage in KB for each user sorted with top users first.</description>
      <pubDate>Sun, 21 Aug 2005 22:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608254#M824529</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-21T22:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608255#M824530</link>
      <description>Hi,&lt;BR /&gt;Try run this:&lt;BR /&gt;#du -akx /home|sort -nr|more&lt;BR /&gt;This wiil sort from largest to lowest used space under /home dir.</description>
      <pubDate>Sun, 21 Aug 2005 22:47:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608255#M824530</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-08-21T22:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608256#M824531</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;quot is the best way to find out this. Allthough all of the above solutions works to some extent.&lt;BR /&gt;&lt;BR /&gt;But apparently it seems your /home is the only worry for you at this time as you are posting several questions related to this at present. Could you attach "bdf" output and "vgdisplay -v vg00" output.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Sun, 21 Aug 2005 23:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608256#M824531</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-08-21T23:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608257#M824532</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;i often use to determine max using /home &lt;BR /&gt;users and warn them like;&lt;BR /&gt;&lt;BR /&gt;cd /home;&lt;BR /&gt;du -ks * |sort -n&lt;BR /&gt;&lt;BR /&gt;and if i want to warn them to delete their&lt;BR /&gt;unnecessary files then;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;cd /home;&lt;BR /&gt;if [ $? -ne 0 ]&lt;BR /&gt;  then&lt;BR /&gt;   echo "/home not found..."&lt;BR /&gt;   exit 1&lt;BR /&gt;  fi&lt;BR /&gt;for user in `du -ks * |sort -n|tail -10|awk '{print $2}'`&lt;BR /&gt; do&lt;BR /&gt; echo "Please clean your unnecessary files!!!Contact Shivkumar"|mailx -s "home dir usage" $user@mail_address&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Above the script;last 10 top disk usage users&lt;BR /&gt;will be inform via e-mail&lt;BR /&gt;&lt;BR /&gt;Good Luck,</description>
      <pubDate>Mon, 22 Aug 2005 01:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608257#M824532</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-22T01:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: which user uses maximum disk space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608258#M824533</link>
      <description>You can use script like,&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;total=$(find /home/ -user root | xargs ls -l | awk 'BEGIN {size=0;}{size+=$5;}END{print size;}')&lt;BR /&gt;echo "root user is using $total size in /home"&lt;BR /&gt;for user in `ls /home/ | grep -v 'lost+found'`&lt;BR /&gt;do&lt;BR /&gt;  id $user 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;  if [[ $? -eq 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;    total=$(find /home/ -user $user | xargs ls -l | awk 'BEGIN {size=0;}{size+=$5;}END{print size;}')&lt;BR /&gt;    echo "$user is using $total size in /home"&lt;BR /&gt;  fi  &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 22 Aug 2005 02:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-user-uses-maximum-disk-space/m-p/3608258#M824533</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-08-22T02:08:20Z</dc:date>
    </item>
  </channel>
</rss>

