I am using a fresh installation of Ubuntu 16.04 LTS.
Whenever I type:
sudo crontab -e
OR
sudo -u www-data crontab -e
The command prints some number and nothing else. And whatever you do to try to exit from it, by any means, you are not able to do.
Questions
- First of all, How to exit from above command? I am just stuck.
- Why the command is not showing the crontab entries?
- How to make the above command to show crontab entries?
EDITED
I have chosen the editor as vim.basic with:
sudo update-alternatives --config editor
But when I do echo $EDITOR
prints empty.
Also,
crontab -e
-> works fine
sudo -u www-data crontab -e
-> stuck as mentioned above
:
type of key sequence, then it's vim, so use ESC then:
thenq
to exit.