Score:1

cat command not found even tough package is installed

bz flag

I've been running Ubuntu 20.04.3 in a VM for a few weeks without any major problems but when i tried to use cat today it only said:

Command 'cat' not found, but can be installed with:

sudo apt install coreutils 

I have coreutils installed and the other commands like tree and touch work. What am i doing wrong?

ar flag
Welcome to Ask Ubuntu. The question is not "What am I doing wrong?" but "What did you do before, to get to lose your cat? Did you leave the door open? Just kidding. More seriously, did you try to delete something and delete cat along with it?
bz flag
I don't think i did but while looking through some old snapshots i found out that whereis cat used to print `cat: /usr/bin/cat /usr/share/man/man1/cat.1.gz` but now it only prints `cat: /usr/share/man/man1/cat.1.gz.` I think that might be the problem but i'm not sure how to fix it.
pLumo avatar
in flag
can you reinstall using `sudo apt install --reinstall coreutils`
bz flag
Just did and it works again now, thank you :)
ar flag
@pLumo Consider converting the comment to an answer. Teddy, if pLumo converts the comment to an answer. Please accept the answer as correct by clicking on the gray check mark ✔ and turn it green ✅. This will help others.
Score:2
in flag

I cannot say what happened, maybe you removed the binary by accident.

You can reinstall the package using apt:

sudo apt install --reinstall coreutils
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.