2

I am trying to made a program to experiment bitwise operators. The name of the program is bitwise.c

Before compiling the program, I decided to look at the directory just in case I don't get the name wrong.

alexander@debian:~/Dropbox/src_code/C$ ls
bitwise bitwise.c  bitwise.c~

What is bitwise.c~ and why is it hidden from the file location?

0

2 Answers 2

2

This file is most likely created by the editor in which you have bitwise.c file open. Some editors create a temporary file while you are editing one, to track all the changes in case the program would crash without saving the file. The file should be gone once you stop editing the file.

4
  • If my editor called "gedit" were to crash and I forgot to save it, will my program be saved from the changes bitwise.c~?
    – rooxgray
    Commented May 30, 2014 at 8:40
  • These are backup files for gedit. I think the previous version is backed up upon saving it instead.
    – ek9
    Commented May 30, 2014 at 8:47
  • I exited my gedit and the bitwise.c~ still remains. You said that the file should be gone but it still remains. Why is that?
    – rooxgray
    Commented May 30, 2014 at 20:53
  • "... the previous version is backed up upon saving it instead."
    – ek9
    Commented May 31, 2014 at 9:58
0

By convention, files ending with ~ are backup files in UNIX. This file should contain copy of your file before last edit.

Not the answer you're looking for? Browse other questions tagged .