Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-20-2010, 01:47 AM   #1
Registered: Jul 2010
Posts: 42

Rep: Reputation: 1
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
Old 08-20-2010, 02:52 AM   #2
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Originally Posted by mcs_o8_01 View Post
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

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

open net-tools with archive manager and extract hostname from bin directory.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
system files delete by typo, /bin/ gone. How to recover? Dbronk Linux - Server 4 01-23-2010 01:05 PM
setting /bin/hostname [failed] tulsi Linux - Networking 6 11-29-2009 06:36 AM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 09:36 PM
How To Recover Trash Bin Mic Q SUSE / openSUSE 2 03-31-2005 04:08 AM
broke /bin/hostname nitsky416 Linux - Networking 2 11-30-2003 04:45 AM

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration