Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

In Linux, does Filename followed by tilde character imply a backup file?

i.e.

filename.h~

What kind of file is this?
SOLUTION
Avatar of Member_2_1239314
Member_2_1239314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, that is usually the sign of a text editor saving a backup copy.

If they disturb you, you can remove those files with

rm *~

(but be very careful with the rm command and wildcards).
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not necessarily. The text editors I've used seem to save backup files regardless. My web development area is littered with files ending with a tilde.
Avatar of naseeam

ASKER

I'm using Codewright V7.0 for editing files.
Avatar of naseeam

ASKER

>>  If they disturb you, you can remove those files with

rm *~

I can also delete them from Windows Explorere, right?
Avatar of naseeam

ASKER

I get two files:

filename.bak
filename.cpp~

Are they both backup files?
It all depends on the application/program you are using when these occur.
It is impossible to say since there are different scenarios when these types of files are created.

Avatar of naseeam

ASKER

I don't think Codewright is creating files followed by tilde because everytime I edit a file in Codewright, I get a filename.bak

Once in a while I use Vim editor.  Maybe Vim is creating tilde file.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial