LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to recover /bin/hostname file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-recover-bin-hostname-file-827381/)

mcs_o8_01 08-20-2010 01:47 AM

how to recover /bin/hostname file
 
accidently i have deleted my /bin/hostname file
i am using redhat centos 5.4 so please help me how to recover it

sem007 08-20-2010 02:52 AM

Quote:

Originally Posted by mcs_o8_01 (Post 4072036)
accidently i have deleted my /bin/hostname file
i am using redhat centos 5.4 so please help me how to recover it

re-install forcefully net-tools rpm

Code:

rpm -ivh --force net-tools-1.60-73.i386.rpm
OR

open net-tools with archive manager and extract hostname from bin directory.


All times are GMT -5. The time now is 11:54 PM.