head: Command not found.


いつのまにか head コマンドがなくなっている。


% head
tcsh: head: Command not found.


しかし、ディレクトリのリストには出てこないのに /usr/bin/head というファイルは存在する。


% pwd
/usr/bin
% ls -l hea?

  • r-xr-xr-x 1 root wheel 32216 12 Aug 05:40 heap*

% ls -l head

  • r-xr-xr-x 1 root wheel 14264 9 Aug 11:00 head*



しかも、そのコマンドはいわゆる Unix の head ではなく、HTTP の header を表示するコマンドらしい。


#!/usr/bin/perl -w

eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}'
if 0; # not running under some shell

# $Id: lwp-request,v 2.6 2003/10/26 14:39:18 gisle Exp $
#
# Simple user agent using LWP library.


誰がこんなものをインストールしたのか? CPAN なんだろうなあ、きっと。


正しい head を入れ直すのはいいけど、とりあえず ls で表示できるようにするにはどうしたらいいのだろう?