Gedit as the default editor in crontab
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
How do I make gedit the default editor for crontab?
So far I've tried:
sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/gedit 100
and
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/gedit 100
No luck so far. (maybe I just need to reboot?)
command-line cron gedit default-programs editor
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
favorite
How do I make gedit the default editor for crontab?
So far I've tried:
sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/gedit 100
and
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/gedit 100
No luck so far. (maybe I just need to reboot?)
command-line cron gedit default-programs editor
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
How do I make gedit the default editor for crontab?
So far I've tried:
sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/gedit 100
and
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/gedit 100
No luck so far. (maybe I just need to reboot?)
command-line cron gedit default-programs editor
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
How do I make gedit the default editor for crontab?
So far I've tried:
sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/gedit 100
and
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/gedit 100
No luck so far. (maybe I just need to reboot?)
command-line cron gedit default-programs editor
command-line cron gedit default-programs editor
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 1 hour ago


Ravexina
27.8k146594
27.8k146594
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 hours ago


J Rosenberg
285
285
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
J Rosenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Open .profile
file using your desired editor:
gedit ~/.profile
Add this line to the file and save it:
export EDITOR=gedit
Logout and re-login. Now when you use crontab -e
it would open gedit
.
Remember that it's going to set gedit
as default editors for other commands too, if you want it only for crontab
then create an alias:
alias crontab='EDITOR=gedit crontab -e'
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Becausecrontab
opens the config files using editor defined inEDITOR
variable... like most of the other commands.
– Ravexina
2 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Open .profile
file using your desired editor:
gedit ~/.profile
Add this line to the file and save it:
export EDITOR=gedit
Logout and re-login. Now when you use crontab -e
it would open gedit
.
Remember that it's going to set gedit
as default editors for other commands too, if you want it only for crontab
then create an alias:
alias crontab='EDITOR=gedit crontab -e'
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Becausecrontab
opens the config files using editor defined inEDITOR
variable... like most of the other commands.
– Ravexina
2 hours ago
add a comment |Â
up vote
3
down vote
accepted
Open .profile
file using your desired editor:
gedit ~/.profile
Add this line to the file and save it:
export EDITOR=gedit
Logout and re-login. Now when you use crontab -e
it would open gedit
.
Remember that it's going to set gedit
as default editors for other commands too, if you want it only for crontab
then create an alias:
alias crontab='EDITOR=gedit crontab -e'
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Becausecrontab
opens the config files using editor defined inEDITOR
variable... like most of the other commands.
– Ravexina
2 hours ago
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Open .profile
file using your desired editor:
gedit ~/.profile
Add this line to the file and save it:
export EDITOR=gedit
Logout and re-login. Now when you use crontab -e
it would open gedit
.
Remember that it's going to set gedit
as default editors for other commands too, if you want it only for crontab
then create an alias:
alias crontab='EDITOR=gedit crontab -e'
Open .profile
file using your desired editor:
gedit ~/.profile
Add this line to the file and save it:
export EDITOR=gedit
Logout and re-login. Now when you use crontab -e
it would open gedit
.
Remember that it's going to set gedit
as default editors for other commands too, if you want it only for crontab
then create an alias:
alias crontab='EDITOR=gedit crontab -e'
edited 2 hours ago
answered 2 hours ago


Ravexina
27.8k146594
27.8k146594
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Becausecrontab
opens the config files using editor defined inEDITOR
variable... like most of the other commands.
– Ravexina
2 hours ago
add a comment |Â
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Becausecrontab
opens the config files using editor defined inEDITOR
variable... like most of the other commands.
– Ravexina
2 hours ago
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
For extra credit any idea why the other methods (mentioned above) didn't work?
– J Rosenberg
2 hours ago
Because
crontab
opens the config files using editor defined in EDITOR
variable... like most of the other commands.– Ravexina
2 hours ago
Because
crontab
opens the config files using editor defined in EDITOR
variable... like most of the other commands.– Ravexina
2 hours ago
add a comment |Â
J Rosenberg is a new contributor. Be nice, and check out our Code of Conduct.
J Rosenberg is a new contributor. Be nice, and check out our Code of Conduct.
J Rosenberg is a new contributor. Be nice, and check out our Code of Conduct.
J Rosenberg is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1075167%2fgedit-as-the-default-editor-in-crontab%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password