-1

This question already has an answer here:

I edited a fresh apache config file in CentOS 5 using gedit. When I looked at the directory I saw now two files:

httpd.conf 

and

httpd.conf~

What does the ~ signify?

marked as duplicate by Mikel, Anthon, Zelda, Braiam, slm Apr 24 '14 at 16:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You should be very careful if you ever publish a website to exclude those file at all cost as one of the classical way to attack a website it to search those file that will be simply diplayed by your webserver as text files, and so reveal your server code (which is bad because no code are 100% reliable) – Kiwy Apr 24 '14 at 16:19
2

httpd.conf~ is a file created by gedit (among other programs) - gedit has created it as a backup of the original file, before your changes are saved to it. You can disable this functionality, see this post.

  • I believe emacs uses this extension as well, for the same purpose. – goldilocks Apr 24 '14 at 14:01
  • I seldom use gedit and I have many of those files. – Anthon Apr 24 '14 at 14:14
  • The OP was asking about gedit in particular, but I have edited for clarity. – Josh Jolly Apr 24 '14 at 14:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.