Server Administration & Management

How to recover accidentally deleted .bash_profile

Issue : How to recover server’s .bash_profile which got deleted accidentally ?

Solution : This can be restored from /etc/skel. Copy the required file to /root and log in to the server again.

# cp -rvdf /etc/skel/.bash_profile /root/

That should resolve the issue.

August 25, 2012 Posted by | Tips & Tricks, Unix/Linux | , , | Leave a comment