<?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: how can i check space occupied by each user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831946#M89095</link>
    <description>Oops.. please disregard my first post. I did try it and came out with incorrect values.&lt;BR /&gt;&lt;BR /&gt;If you have disk quota enabled on the file system, then use this command:&lt;BR /&gt;# quot with -f option&lt;BR /&gt;# man quot for details.&lt;BR /&gt;&lt;BR /&gt;Another way is to find the total files owned by the user with the find -user command, then add it up with a script.</description>
    <pubDate>Wed, 23 Oct 2002 15:37:05 GMT</pubDate>
    <dc:creator>Helen French</dc:creator>
    <dc:date>2002-10-23T15:37:05Z</dc:date>
    <item>
      <title>how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831939#M89088</link>
      <description>I need to check the space occupied by different users inside a particular directory. How do I do that ?</description>
      <pubDate>Wed, 23 Oct 2002 15:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831939#M89088</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-23T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831940#M89089</link>
      <description>Go to the directory above the User's individual directory and give the command "du -sk *" . It will give you the size in KB.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 23 Oct 2002 15:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831940#M89089</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-10-23T15:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831941#M89090</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;# find dir_name -type f -user user_name | du -k | sort -rn</description>
      <pubDate>Wed, 23 Oct 2002 15:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831941#M89090</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-10-23T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831942#M89091</link>
      <description>It is easy with find/du/awk:&lt;BR /&gt;for USER in "liste users"&lt;BR /&gt;do&lt;BR /&gt;find mydir -user $USER -exec du -sk {} \; | awk 'BEGIN{resu=0}{resu=resu+$1}END{print resu}'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Bye</description>
      <pubDate>Wed, 23 Oct 2002 15:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831942#M89091</guid>
      <dc:creator>Bruno Vidal</dc:creator>
      <dc:date>2002-10-23T15:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831943#M89092</link>
      <description>oups, sorry, about my answer, should add -type f, or it will count same file more than one.&lt;BR /&gt;find . -user $USER -exec du -sk {} \; | awk 'BEGIN{resu=0}{resu=resu+$1}END{print resu}'</description>
      <pubDate>Wed, 23 Oct 2002 15:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831943#M89092</guid>
      <dc:creator>Bruno Vidal</dc:creator>
      <dc:date>2002-10-23T15:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831944#M89093</link>
      <description>find /dir/to/look/in -type f -user user-to-look-for | du -sk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will look for all files for one user and the display the usage summary in kilobytes.  It will search sub directories also.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2002 15:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831944#M89093</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-10-23T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831945#M89094</link>
      <description>Two words for you.  "DISK QUOTAS"&lt;BR /&gt;&lt;BR /&gt;man quota&lt;BR /&gt;man quotaed&lt;BR /&gt;&lt;BR /&gt;This is one of them very under used features, which has multiple purposes and makes many things so easy.&lt;BR /&gt;&lt;BR /&gt;Once you setup quotas, all the info is at a command prompt for you to grok.&lt;BR /&gt;&lt;BR /&gt;You do NOT have to set hard or soft limits, so can use quotas for accounting purposes.  However, you can set limits to reduce disk pigs effects on your system.&lt;BR /&gt;&lt;BR /&gt;If Im feeling fiesty though, I'll change hard limits to 1K and listen to users complain for an hour ;)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 23 Oct 2002 15:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831945#M89094</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-10-23T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831946#M89095</link>
      <description>Oops.. please disregard my first post. I did try it and came out with incorrect values.&lt;BR /&gt;&lt;BR /&gt;If you have disk quota enabled on the file system, then use this command:&lt;BR /&gt;# quot with -f option&lt;BR /&gt;# man quot for details.&lt;BR /&gt;&lt;BR /&gt;Another way is to find the total files owned by the user with the find -user command, then add it up with a script.</description>
      <pubDate>Wed, 23 Oct 2002 15:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831946#M89095</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-10-23T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831947#M89096</link>
      <description>Hi Namit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You may like to do a man diskusg and then list the usage user wise , also ther e is a small script to sort the same usage wise a tthe end of the man&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Wed, 23 Oct 2002 15:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831947#M89096</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-10-23T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831948#M89097</link>
      <description>I have two limitations here ... &lt;BR /&gt;&lt;BR /&gt;First, I want the info about all the users using the directory ( and that includes a lot of them ... so I can't enter the names manually )&lt;BR /&gt;&lt;BR /&gt;Second, I do not have root permissions on the machine.&lt;BR /&gt;&lt;BR /&gt;Is it still possible ?&lt;BR /&gt;Sorry for not explaining that before ... I am a dumba** :-(</description>
      <pubDate>Wed, 23 Oct 2002 15:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831948#M89097</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-23T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831949#M89098</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This can be done easily in the following ways.&lt;BR /&gt;&lt;BR /&gt;If you have all users in a single /home directory, Run this as root.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;du -sk /home/*&lt;BR /&gt;&lt;BR /&gt;This will give you each user's disk space utilization.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Anil (Don't forget to assing points if answers are valuable to you)</description>
      <pubDate>Wed, 23 Oct 2002 15:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831949#M89098</guid>
      <dc:creator>Anil C. Sedha</dc:creator>
      <dc:date>2002-10-23T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831950#M89099</link>
      <description>&lt;BR /&gt;If you don't have root permissions on this machine, then the gathering of this information could be a mute point. If you don't have sufficient permissions to browse these directories then you might as well give up now.&lt;BR /&gt;&lt;BR /&gt;You can't properly gather the size of files in directories where the files are shared amongst other users without reporting the same file over and over again. &lt;BR /&gt;&lt;BR /&gt;I think you need to talk to your systems administrator regarding your concerns on filesystem usage.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 23 Oct 2002 16:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831950#M89099</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-23T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831951#M89100</link>
      <description>Hi Namit,&lt;BR /&gt;&lt;BR /&gt;This may be of some help..&lt;BR /&gt;&lt;BR /&gt;du -sk /home/* | sort -nr&lt;BR /&gt;&lt;BR /&gt;this sorts the output numerically&lt;BR /&gt;and the output is in KB....&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nag</description>
      <pubDate>Wed, 23 Oct 2002 16:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831951#M89100</guid>
      <dc:creator>Nag Varma</dc:creator>
      <dc:date>2002-10-23T16:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831952#M89101</link>
      <description>First of all if you do not have root permission, why would you be interested in that kind of info ? That's beside the point .. it's not going to work. All it needs is for someone to close his/her directory access and you (as a normal user) would not be able to traverse it, hence not possible to determine the correct total disk space. If you have root access you can write a script that goes through a for loop one user at a time and accumulate the total at the end.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2002 16:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831952#M89101</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-23T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check space occupied by each user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831953#M89102</link>
      <description>Since some programs and users block permissions, I have to agree with Harry that you can not do what you want.&lt;BR /&gt;&lt;BR /&gt;You can have the admin setup 1 of a couple things.&lt;BR /&gt;1.  Sudo to give you root access to the find command.&lt;BR /&gt;*  Then you could find all users files, make a script to sort the indes, add the sizes and get useage.&lt;BR /&gt;&lt;BR /&gt;2.  setup quotas.  This may still require Sudo, but can be setup as a root cron job to mail you out put periodically to fullfill needs as well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 23 Oct 2002 16:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-check-space-occupied-by-each-user/m-p/2831953#M89102</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-10-23T16:13:12Z</dc:date>
    </item>
  </channel>
</rss>

