I lent a friend a computer with Ubuntu 12.04 LTS on it, and he messed up the cat command.
$ cat testfile.txt
cat: meow!
$
Can someone tell me how to fix this? please?
Output of which cat:
/bin/cat
I lent a friend a computer with Ubuntu 12.04 LTS on it, and he messed up the cat command.
$ cat testfile.txt
cat: meow!
$
Can someone tell me how to fix this? please?
Output of which cat:
/bin/cat
If he's a friend, he probably did something of the style (as root)(1):
mv /bin/cat /bin/cat.orig
echo "echo 'cat: meow! '" > /bin/cat
chmod 755 /bin/cat
If he's less of a friend, he omitted the first line.
Asking apt-file
apt-file search -F /bin/cat
says that the package is coreutils. You can probably reinstall it, although I see it as a bit of a dangerous thing...
(1) well, I really would have added alias which="echo cat: is a siamese" to your .bashrc, but well...
It's actually an April Fool's trick. I changed the clock on my Debian box out of April 1st, and it fixed itself. Sick, sick joke...
cat commands are normal today again... Weird, but that's what I found out to fix it :-S
– Canadian Luke
Apr 02 '14 at 16:36
which cat. If it says something like "siamese" or other cat's species, you friend is a genius. Otherwise, copy the output in your question. – Rmano Mar 31 '14 at 23:02testfile.txt? – Mateo Mar 31 '14 at 23:11testing... nano works fine! – TheDoctor Mar 31 '14 at 23:13file /bin/catandls -l /bin/cat*. By the way, your "friend" had root access, doesn't he? – Rmano Mar 31 '14 at 23:14echo "cat: meow"– TheDoctor Mar 31 '14 at 23:15