Re: pruning files



In article <1147869520.806892.284480@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Robert
Hicks wrote:
I have a bunch of daaa* and baaa* files in /var/tmp that are old (as in
2003). Can I safely remove these?

Also I have a file called "index" that is rather large. Can I zero that
out with "> index" without hurting anything?

It depends :)

Are you sure they aren't used? Assuming your system has been rebooted after the
mod time of these files, you are probably safe. You might also want to use
fuser and/or lsof to make sure they aren't open if there are more recent than
the last reboot...

Kevin

--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com
.



Relevant Pages

  • Re: Vim7
    ... In article, Robert ... Hicks wrote: ... Works like a charm! ... Unix Guy Consulting, LLC ...
    (comp.sys.hp.hpux)
  • Re: Vim7
    ... In article, Robert ... Hicks wrote: ... will be able to use Vim as well? ... Unix Guy Consulting, LLC ...
    (comp.sys.hp.hpux)
  • Re: Date arithmetic on Unix
    ... Premier Farnell plc ... Behalf Of Robert Mills ... Date arithmetic on Unix ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: FreeBSD 7 trivial problems / notes
    ... better than stopping the boot process on mount failures: ... % understand why setting the sixth field to zero is something you ... % file system does not need to be checked. ... the fault of UNIX if you do, in fact, blast it off". ...
    (freebsd-current)
  • Re: Unix scripting question
    ... First I know zero about Unix and ... shells. ... want to process (iterate to) the next job in the list. ...
    (comp.unix.shell)