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?
Asked
Active
Viewed 1,168 times
0

Byte Commander
- 107,489

reynarice
- 11
/etc/skel
are copied to the home directories of new users. The file/etc/profile
is a system-wide configuration file and somewhat different. – mook765 Mar 27 '18 at 14:51/etc/profile
. – Chai T. Rex May 15 '18 at 23:27