Program or system function that reverts files?

General support questions
Post Reply
johndabomb44
Posts: 2
Joined: 2020/03/17 14:20:44

Program or system function that reverts files?

Post by johndabomb44 » 2020/03/17 14:30:00

Hello!

Is there a program or built-in function of CentOS 6 that does something like the following?

1. for ex: /etc/issue states "Welcome!"
2. I change /etc/issue to "Goodbye!" and save changes to file
3. I then reboot system
4. I open /etc/issue and it states "Welcome!"

Basically, is there some kind of revert function or software that stops write changes to files persisting after a reboot?

User avatar
TrevorH
Forum Moderator
Posts: 28026
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Program or system function that reverts files?

Post by TrevorH » 2020/03/17 16:41:25

No.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 1103
Joined: 2013/09/06 03:12:10

Re: Program or system function that reverts files?

Post by Whoever » 2020/03/17 19:32:24

johndabomb44 wrote:
2020/03/17 14:30:00
Hello!

Is there a program or built-in function of CentOS 6 that does something like the following?

1. for ex: /etc/issue states "Welcome!"
2. I change /etc/issue to "Goodbye!" and save changes to file
3. I then reboot system
4. I open /etc/issue and it states "Welcome!"

Basically, is there some kind of revert function or software that stops write changes to files persisting after a reboot?
I have seen this behaviour once, but it wasn't a CentOS system. It was a Raspberry Pi, running Raspbian, and the MicroSD card was dying.

johndabomb44
Posts: 2
Joined: 2020/03/17 14:20:44

Re: Program or system function that reverts files?

Post by johndabomb44 » 2020/03/17 20:03:14

TrevorH wrote:
2020/03/17 16:41:25
No.

Ok, so if a system is having this behavior then it is because someone programmed the computer in some way to do so?

Whoever
Posts: 1103
Joined: 2013/09/06 03:12:10

Re: Program or system function that reverts files?

Post by Whoever » 2020/03/17 23:18:18

johndabomb44 wrote:
2020/03/17 20:03:14
TrevorH wrote:
2020/03/17 16:41:25
No.

Ok, so if a system is having this behavior then it is because someone programmed the computer in some way to do so?
Probably. Start by looking at /etc/rc.local

Post Reply

Return to “CentOS 6 - General Support”