UnixServerAdmin

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.

Advertisements

August 25, 2012 - Posted by | Tips & Tricks, Unix/Linux | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: