New .profile [Solved]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
erw1
Level 3
Level 3
Posts: 145
Joined: Sun Apr 08, 2018 12:58 am

New .profile [Solved]

Post by erw1 »

I accidentally deleted .profile. How would one regenerate it?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
x64/LM 23+Xfce
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: New .profile

Post by xenopeek »

Yes. Open terminal from your menu and run this command:
cp -v /etc/skel/.profile ~

That gets you back the default .profile file. Log out and log back in to activate.
Image
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: New .profile

Post by Cosmo. »

First question is, how did you delete?. In case of a graphical file manager you should find the file in the trash bin.
erw1
Level 3
Level 3
Posts: 145
Joined: Sun Apr 08, 2018 12:58 am

Re: New .profile

Post by erw1 »

xenopeek wrote: Fri Jun 24, 2022 10:51 pm Yes. Open terminal from your menu and run this command:
cp -v /etc/skel/.profile ~

That gets you back the default .profile file. Log out and log back in to activate.
OK, solved
x64/LM 23+Xfce
erw1
Level 3
Level 3
Posts: 145
Joined: Sun Apr 08, 2018 12:58 am

Re: New .profile

Post by erw1 »

Cosmo. wrote: Sat Jun 25, 2022 5:12 am First question is, how did you delete?. In case of a graphical file manager you should find the file in the trash bin.
No, it ain't there.
x64/LM 23+Xfce
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: New .profile [Solved]

Post by Cosmo. »

As you have a solution, it is not more of interest to investigate the sudden loss of the file. My guess: You did not delete it, but moved it to another place. (Or you circumvented the trash, but in this case you should know this.)
Locked

Return to “Beginner Questions”