Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'head restoration' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
head restoration
Authored by: hmelton on Jun 04, '01 02:08:57PM

I did the very same thing a few weeks ago. I then went to the Darwin site and downloaded the source file for head, and recompiled a fresh copy. It is handy having the source freely available.

[ Reply to This | # ]
head restoration
Authored by: babbage on Jun 04, '01 03:18:03PM

This also came up on the mailing list, and somebody pointed out that,
if any of the applications such as "head" gets damaged by an install, you can simply
grab a clean copy off your installation discs. I'm not sure where it is on there, but
if you installed it once then surely you can install it again. No download necessary.

[ Reply to This | # ]
head restoration
Authored by: moyashi on Jun 04, '01 09:51:08PM

ok, where did you find this ??? search a lot of different places and can't seem to find the link you're talking about.


[ Reply to This | # ]
head restoration
Authored by: hmelton on Jun 05, '01 09:52:02AM

The source code for head can be found by going to
and downloading the text_cmds package. (tar.gz file) Make sure you have the
developer stuff installed and use the make command in the head folder.

Delete /usr/bin/HEAD ( this is an exact duplicate of GET,POST, and lwp-request so nothing is lost)
copy head to /usr/bin as root or using sudo and make the ownership and permissions the same as tail.

[melton-henry-1:/usr/bin] rhca80% sudo chown root head
[melton-henry-1:/usr/bin] rhca80% sudo chmod 555 head
[melton-henry-1:/usr/bin] rhca80% sudo chgrp wheel head
[melton-henry-1:/usr/bin] rhca80% ls -al head tail
-r-xr-xr-x 1 root wheel 14244 Apr 19 09:54 head
-r-xr-xr-x 1 root wheel 18232 May 10 08:24 tail

[ Reply to This | # ]