Bashed

Well-Known Member
Dec 18, 2013
143
4
68
cPanel Access Level
Root Administrator
I think a made a minor mistake a few days ago and deleted some .bash file(s). So, when I log into SSH now it shows this instead of [email protected]

Code:
-bash-4.1#
On a good server I see this:

Code:
lrwxrwxrwx.   1 root root    7 Jul  7  2016 bin -> usr/bin
On the server showing -bash- prompt I see this:

Code:
dr-xr-xr-x.   3 root root 4.0K Jul 19 05:02 bin
Curious, how would I fix that? They're all Centos 7 boxes.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I think a made a minor mistake a few days ago and deleted some .bash file(s).
Hello,

Could you let us know the specific commands you ran, or which files were deleted? If you wanted to reinstall the bash RPM, you could use this command:

Code:
yum reinstall bash
Thank you.