Problem with crontab(redhat)

$ crontab -e

no crontab for yosssi - using an empty one

/bin/sh: line 1: /bin/vi: No such file or directory

crontab: "/bin/vi" exited with status 127

Thanks for your help.

4 Replies

You don't have vi installed, or it couldn't be found.

Try whereis vi to see if you need to install it.


or set the EDITOR environment variable to the name of the text editor you want to use instead. i prefer vim.

for example:

export EDITOR=nano

/me looks at his pico and the nano….. I really must upgrade someday.



Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct