Cron is a task scheduling daemon used in Linux Mint. As of this writing, Linux Mint 17.3 has it pre-installed. When the user needs to schedule a task, he must execute the following command:
sudo crontab -e
If you do this for the first time, you will be offered to select the default editor. If you made a wrong choice, here is how you can reset the editor app for crontab in Linux Mint.
To add a scheduled task with crontab, you need to do the following.
- Open your favorite terminal app. Any app is suitable.
- Type the following command:
sudo crontab -e
Enter your password to confirm the command.
If you do this for the first time, you will be offered to select the default editor. nano will be selected by default.
- If you accidentally selected the wrong app, for example, you entered 3 instead of 2 in the editor app request, exit the currently opened editor app.
- Type the following command:
rm ~/.selected_editor
This will reset the app choice for the crontab -e command for your user account in Linux Mint.
The .selected_editor file located in your home directory contains the path to the editor's executable file which will be used for the crontab command. Once you delete it, you will get the prompt to select a new editor app the next time you run the crontab command.
That's it.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options: