<?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: file removal command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455746#M12432</link>
    <description>Your best bet is the find command:&lt;BR /&gt;&lt;BR /&gt;find /home -mtime +300 ! -name ".profile" ! -name ".sh_history" ! -name "on.and.on.and.on"...  -exec ls -l {}\;&lt;BR /&gt;&lt;BR /&gt;to preview and use the -exec rm {}\; construct to remove.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Oct 2000 18:33:05 GMT</pubDate>
    <dc:creator>Kofi ARTHIABAH</dc:creator>
    <dc:date>2000-10-19T18:33:05Z</dc:date>
    <item>
      <title>file removal command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455745#M12431</link>
      <description>I would like to prune our user directories of files that exceed a set limit ( ie, say no more than 50 files per user directory ).  Preferably, the older files would be the ones being deleted. However, I do NOT want environmental files such as .profile and .cshrc to be deleted.  Any ideas for commands/scripts that woudl accomplish this.  Thanks in advance, Jonas</description>
      <pubDate>Thu, 19 Oct 2000 18:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455745#M12431</guid>
      <dc:creator>DELIN YANG</dc:creator>
      <dc:date>2000-10-19T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: file removal command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455746#M12432</link>
      <description>Your best bet is the find command:&lt;BR /&gt;&lt;BR /&gt;find /home -mtime +300 ! -name ".profile" ! -name ".sh_history" ! -name "on.and.on.and.on"...  -exec ls -l {}\;&lt;BR /&gt;&lt;BR /&gt;to preview and use the -exec rm {}\; construct to remove.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2000 18:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455746#M12432</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-10-19T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: file removal command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455747#M12433</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I would think rather than abritrarly remove user's files by sheer number limits, you would want to remove (or MOVE elsewhere) files that haven't been accessed in some defined period of time.  Consider, by way of example, only:&lt;BR /&gt;&lt;BR /&gt;# find /mydir -atime +30 -exec rm {} \:&lt;BR /&gt;&lt;BR /&gt;This would remove files from /mydir that haven't been accessed in 30-days.  See the man page for 'find' for more options and examples.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Oct 2000 18:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455747#M12433</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-19T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: file removal command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455748#M12434</link>
      <description>what about using disk quota's to force the users to clean up their own messes ?  We origionally had this problem with abusers in the /home filesystem and once disk quotas on were set the problem no longer existed and I do not have to baby sit anymore. Just an idea.</description>
      <pubDate>Fri, 20 Oct 2000 20:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-removal-command/m-p/2455748#M12434</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2000-10-20T20:15:12Z</dc:date>
    </item>
  </channel>
</rss>

