Fixing crontab -e "/bin/sh: /usr/bin/vi: No such file or directory error."

Hi all.

I was trying to run crontab -e on one of my machines to add few cron jobs and I have found myself looking at this error:

/bin/sh: /usr/bin/vi: No such file or directory

Wth? I have vi installed I thought… and I have started investigation. Crontab is looking for the vi file in a wrong place. To fix it run this commands:

su

give it a root password.

ln -s /bin/vi /usr/bin/vi

exit

crontab -e

Crontab errors and fix snapshot

You will be able to add entries ;).

Hope this helps somebody someday.

Andy

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Comments are closed.