Results 1 to 8 of 8
Hello
I inserted some code in my .bashrc file and have screwed up myself. I want to get the .bashrc file as it was before. HELP!!...
- 05-29-2009 #1
[SOLVED] Messed up .bashrc how to get orignal back
Hello

I inserted some code in my .bashrc file and have screwed up myself. I want to get the .bashrc file as it was before. HELP!!Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
- 05-29-2009 #2
Well, no idea what distro you're using, but even so, I don't know their defaults, but here is my very basic one minus aliases.
Code:# Check for an interactive session [ -z "$PS1" ] && return alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi
- 05-29-2009 #3
Perhaps look /etc/skel/.bashrc? /etc/skel is where most distros put the default files that get copied to a new user's directory.
- 05-29-2009 #4
thanks for replying guys
I was exactly looking for this file /etc/skel/.bashrc. Thanks for helping me out
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
- 05-29-2009 #5
- 05-29-2009 #6
- 05-29-2009 #7
Use
thats it ... it will display defaults or you can use the command to change defaults - but I don't recommend itCode:adduser -D

first !Code:man useradd
I expected you to use adduser -D to find the default files location (usually /etc/skel) and then manually copy .bashrc from there to your user home area to restore things to how they would be when the user was created
- 05-30-2009 #8
thanks
Thanks I copied the files form /etc/skel/ and its working properly.
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu



