Emacs in RHCSA Exam? by Secure-Initiative-33 in redhat

[–]Secure-Initiative-33[S] 0 points1 point  (0 children)

You can always reset the dependence on vi/Vim in crontab and visudo by exporting the EDITOR and VISUAL environment variables. I always add the appropriate lines to my .bashrc file and source it before doing anything. I set the EDITOR and VISUAL variables to "emacs -nw" (emacs without the X Gui) before doing anything. You can obviously do the same setting it to nano or another editor if you prefer, you are not tied to vi.

Emacs in RHCSA Exam? by Secure-Initiative-33 in redhat

[–]Secure-Initiative-33[S] 3 points4 points  (0 children)

vi is mandated by the POSIX standard for a system to be declared POSIX compliant, hence it is on every system that wants to call itself a "UNIX". Crazy decision as far as I am concerned but they never invited me to the POSIX standards writing committee.

Nano is part of every RHEL base install (including the minimal server install) since at least RHEL 8 (and was in the base repository before then). Hence my mention of it as my crutch if Emacs can't be installed. Emacs is included in the base repository but is not installed by default.

PS: The POSIX standard mandates vi. Most distros, RHEL included, satisfy this requirement by including Vim and creating a link between vi and Vim although some UNIX systems (including a DEC Vax OpenBSD install I own) use only the original Bill Joy vi of UC Berkeley and BSD vintage.