1833784 Members
2274 Online
110063 Solutions
New Discussion

Re: /usr/preserve

 
SOLVED
Go to solution
Ray Krupinski_1
Occasional Contributor

/usr/preserve

Can these files be removed in this directory.
They are a copy of the files in /var/preserve.
That I know I can remove is the directory /usr/preserve also saving a bad vi exit or escape like /var/preserve is.They are all name with this style Exaaa00405,Exaaa00410...etc .
7 REPLIES 7
Robin Wakefield
Honored Contributor
Solution

Re: /usr/preserve

Hi,

They are the same files - /usr/preserve is a link to /var/preserve

Rgds, Robin
A. Clay Stephenson
Acclaimed Contributor

Re: /usr/preserve

These files are the result of vi terminating abnormally. If you don't need the saved versions textfiles you were editing then you can remove the files.
If it ain't broke, I can fix that.
John Poff
Honored Contributor

Re: /usr/preserve

Hello,

You can nuke those files in /var/preserve. They are temporary files from the vi editor. You might want to run the 'fuser' command on any current ones just to be sure they aren't in use. The /usr/preserve directory is a symlink to /var/preserve.

JP
Sanjay_6
Honored Contributor

Re: /usr/preserve

Hi Ray;

Looks liek temporary files to me. Think you can remove them safely. How are they there in the first place. See if you can find out.

my /var/preserve is empty.

Hope this helps.

thanks
Ray Krupinski_1
Occasional Contributor

Re: /usr/preserve

Thanks, after looking into I saw they were Linked to /var/preserve
Darrell Allen
Honored Contributor

Re: /usr/preserve

Hi Ray,

The key phrase is "if they are not needed". I have some non-techie users who would never think of using "vi -r" on a file. I, and some other techie types, would because these files are the "work in progress" versions of files that were being edited. That is, that's the way the file looked with any changes I made to it since the last write to disk (:w in vi). And since I sometimes don't save my changes often enough and could be hit by a dropped connection I'd like to be able to get back to the point where I was while editing the file.

Point is that you may not want to arbitrarily blow away these files for all users.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Darrell Allen
Honored Contributor

Re: /usr/preserve

Well, my reply is kinda right. The /var/preserve file isn't exactly a "work in progress" file. It does contain data and info that lets the system recover the file to some extent when you run vi -r after vi exited ungracefully.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)