0

I'm working on a bash script tied to /etc/profile but instead of appending, I accidentally wrote over it, losing all its contents. How can I restore the file?

Byte Commander
  • 107,489

1 Answers1

3

You can find the template of /etc/profile in /usr/share/base-files/profile If you want to restart with a new one, you can easily copy it :

sudo cp /usr/share/base-files/profile /etc/profile
mook765
  • 15,925
Félicien
  • 1,183