<?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 du command problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363684#M684283</link>
    <description>&lt;!--!*#--&gt;i have a hpux 11i server and &lt;BR /&gt;my problem is i can not doing du -sk command for the /opt file system on this server but i can do that (du -sk ) on /var for example on the same server . /opt increases and it reached to 89% and i didn't know what is the cause? so i need to do this command .   note : if i made du -sk *| morethis message appered to me illegal option --p thank you alot</description>
    <pubDate>Sun, 22 Feb 2009 06:46:10 GMT</pubDate>
    <dc:creator>manal_1</dc:creator>
    <dc:date>2009-02-22T06:46:10Z</dc:date>
    <item>
      <title>du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363684#M684283</link>
      <description>&lt;!--!*#--&gt;i have a hpux 11i server and &lt;BR /&gt;my problem is i can not doing du -sk command for the /opt file system on this server but i can do that (du -sk ) on /var for example on the same server . /opt increases and it reached to 89% and i didn't know what is the cause? so i need to do this command .   note : if i made du -sk *| morethis message appered to me illegal option --p thank you alot</description>
      <pubDate>Sun, 22 Feb 2009 06:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363684#M684283</guid>
      <dc:creator>manal_1</dc:creator>
      <dc:date>2009-02-22T06:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363685#M684284</link>
      <description>Hi why should that say -p illegal option!!&lt;BR /&gt;can you please post the O/Ps of &lt;BR /&gt;#du -sk /var&lt;BR /&gt;#du -sk /opt&lt;BR /&gt;#bdf&lt;BR /&gt;regards&lt;BR /&gt;sujit</description>
      <pubDate>Sun, 22 Feb 2009 10:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363685#M684284</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-02-22T10:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363686#M684285</link>
      <description>you have a strangely named file in opt.&lt;BR /&gt;&lt;BR /&gt;ls -lb should gibe you an idea.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Feb 2009 11:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363686#M684285</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-22T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363687#M684286</link>
      <description>sorry - I meant give, not gibe.&lt;BR /&gt;&lt;BR /&gt;If you have a file named "-p" then this will be put in place of the asterisk, and the command becomes:&lt;BR /&gt;&lt;BR /&gt;# du -sk -p | more&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Feb 2009 11:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363687#M684286</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-22T11:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363688#M684287</link>
      <description>I believe there is Typo error while giving the command&lt;BR /&gt;&lt;BR /&gt;As confirmed above you might have entered&lt;BR /&gt;&lt;BR /&gt;$ du -ks -p&lt;BR /&gt;du: illegal option -- p&lt;BR /&gt;usage: du [-a|-s] [-kbrx] [-t type] [name ...]&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Please execute again and let us know the error which you are getting&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/du /opt</description>
      <pubDate>Sun, 22 Feb 2009 13:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363688#M684287</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-02-22T13:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363689#M684288</link>
      <description>&amp;gt;  du -sk *| morethis message appered to me illegal option --p&lt;BR /&gt; &lt;BR /&gt;Here is what happened: the "*" was expanded by the shell (as it always does) to place all the names of the files and directories in your current working directory. It is very important to understand how the shell rewrites your command line. Your current directory contains a file with the name "-p" which produced the error. Try this same command (without the | more) like this:&lt;BR /&gt; &lt;BR /&gt;echo du -sk *&lt;BR /&gt; &lt;BR /&gt;You will see what the du command will see -- a list of all the filenames in your current directory. Since du always descends into the subdirectories, you dop not need "*". Just use either of these commands:&lt;BR /&gt; &lt;BR /&gt;du -sk /opt&lt;BR /&gt;or&lt;BR /&gt;cd /opt&lt;BR /&gt;du -sk&lt;BR /&gt; &lt;BR /&gt;However, since you are looking for unexpected space usage, you should use this command:&lt;BR /&gt; &lt;BR /&gt;du -kx /opt | sort -rn | head -20&lt;BR /&gt; &lt;BR /&gt;This will show you the largest directories, which is better than showing a summary of all the directories in alphabetical order.&lt;BR /&gt; &lt;BR /&gt;Unexpected growth in /opt usually means there may be some logfiles stored there -- not a good place. When you find logfiles, either configure the applications that created them to put them in /var/opt, or replace the logfile with a symbolic link to /var/opt/.</description>
      <pubDate>Sun, 22 Feb 2009 17:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363689#M684288</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-02-22T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363690#M684289</link>
      <description>If you do have a junk file in /opt/ you should remove it.&lt;BR /&gt;rm -i ./--p&lt;BR /&gt;You could also use: du -kxs -- *</description>
      <pubDate>Sun, 22 Feb 2009 18:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363690#M684289</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-22T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363691#M684290</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;  thank you , my thread has been closed .&lt;BR /&gt;&lt;BR /&gt;I found the directory clled -p ander fs /opt and when removed it i could apply du comand .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;with my regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manal</description>
      <pubDate>Mon, 23 Feb 2009 08:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363691#M684290</guid>
      <dc:creator>manal_1</dc:creator>
      <dc:date>2009-02-23T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: du command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363692#M684291</link>
      <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;thank you , my thread has been closed  &lt;BR /&gt;&lt;BR /&gt;If you think your problem got solved then please assign points who give there precious time for your problem.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 23 Feb 2009 10:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command-problem/m-p/4363692#M684291</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-02-23T10:53:45Z</dc:date>
    </item>
  </channel>
</rss>

