0

I accidentally deleted the .profile in my Ubuntu 18.04 today. How to retrieve this.

regards,

user1738234
  • 85
  • 2
  • 11

1 Answers1

1

You can copy the default $HOME/.profile that your user account was created with from the /etc/skel directory:

cp -i /etc/skel/.profile ~/

Obviously you will lose any customisations that you made to the file.

steeldriver
  • 136,215
  • 21
  • 243
  • 336