On 2024-02-14 23:49, -pj via openSUSE Users wrote:
On 02-13-2024 05:11PM, Carlos E. R. wrote:
On 2024-02-14 00:01, -pj via openSUSE Users wrote:
On 02-12-2024 10:35PM, Goblin Invader wrote:
Some of what I was reading spoke of a crontab possibility which you explain above.
The issue for me right now is my lack of knowledge of the vi editor.
Do:
EDITOR=/usr/bin/mcedit crontab -e
or
EDITOR=/usr/bin/joe crontab -e
instead of joe you can use jstar, jpico, jmacs, and joe will emulate those editors. Any one you like.
Or use any other editors you like. pico, nano... But joe is installed by default on opensuse.
When you find one that you like, then edit ".bashrc":
export EDITOR=/usr/bin/mcedit
and that will be the editor used by system tools instead of vi ;-)
This is really important advice on editors that I was not aware of. I have very limited knowledge of 'Kate Advanced Text Editor' and have mainly been using Kate for basic file editing tasks on this machine.
For instance in order to edit /etc/default/grub I must be root in order for Kate to save any changes to the file.
# kate /etc/default/grub THIS IS POTENTIALLY INSECURE! To edit files as root please use: SUDO_EDITOR=kwrite sudoedit <file>
Then Kate opens the the *correct* grub file for editing. - kwrite looks pretty interesting. - Trying the following to open Kate does not seem to work so great anymore, as it opens Kates GUI into very strange files i.e. grub.09D0g681 file .
:~> SUDO_EDITOR=kate sudoedit /etc/default/grub [sudo] password for root: sudoedit: /etc/default/grub unchanged
Do you know what's going on with that by chance?
No. I do not use graphical editors for admin work. I only use terminal editors for those things. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)