[SOLVED] Replaced my .bashrc file with a bash file
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Replaced my .bashrc file with a bash file
I accidentally replaced my .bashrc file with a bash file. How am i supposed to bring my .bashrc file back?
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Replaced my .bashrc file with a bash file
A default/vanilla .bashrc you can (on Mint 18) copy over from /etc/skel/.bashrc; that's where it's got from for every new user account. If you changed it and have now overwritten it, the easiest course of action is probably to change it again after doing the former.
Re: Replaced my .bashrc file with a bash file
parotta36 has the solution. A usage tip: Before you make a change to any configuration installation file, make a backup. If it is a new file that has never been modified, add the suffix "install", after that make the suffix the date time. Not only will you have a recent backup, but you can use
diff
to see what has changed.Code: Select all
cp -a .bashrc .bashrc.install
cp -a .bashrc .bashrc.$(date +%Y%m%dT%H%M%S)
diff -y .bashrc .bashrc.install
Re: Replaced my .bashrc file with a bash file
Thank you all, I have restored the file.
Re: Replaced my .bashrc file with a bash file
This thread may be very helpful to others would be great if you add [SOLVED] to the beginning of the title of your first post, as this will help people searching for a solution. Thanks!
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------Acer Aspire One D255E - LM21.3 Xfce
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----… Two ROMS don't make a WRITE …
Toshiba NB250 - Manjaro KDE------------------------Acer Aspire One D255E - LM21.3 Xfce
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----… Two ROMS don't make a WRITE …