I am using a fresh installation of Ubuntu 16.04 LTS.
Whenever I type:
sudo crontab -e
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.
- 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?
I have chosen the editor as vim.basic with:
sudo update-alternatives --config editor
But when I do
echo $EDITOR prints empty.
crontab -e -> works fine
sudo -u www-data crontab -e -> stuck as mentioned above