How to restore "bashrc" file.
boslists at gmail.com
Tue Nov 4 12:20:27 UTC 2008
On Tue, Nov 04, 2008 at 09:20:54AM +0530, ksh shrm wrote:
> I was experimenting with bashrc and I didn't made any backup of this file.
> Unluckily, i made some changes that are creating trouble when i start
> like "A is not a command" or something like that.
> I don't know how to use vi editor.
> If there is anyway to get a default bashrc file, please tell me.
I'm sure it's possible to get a default bashrc, but the best way to get one
specific for your system might be to create a new user. Assuming you made
no changes to bashrc before messing it up, create a new user then use gksu
nautilus to copy the new users bashrc to your yours.
Better yet, open both and compare them and try to see where you made the
mistake. Yoy don't need to know vi. Use gedit when in a graphical
environment, and I'd recomend nano in a shell if you are unfamiliar with
non-graphical text editors.
It does help to learn at least one non-graphical editor. You never know ehn
you'll be forced to use it.
More information about the ubuntu-users