Can I use the text editor ee (edit) instead of visudo?

FreeBSD.test.file.jpg
FreeBSD - man edit.jpg

Is this a way to use this easy editor instead of visudo when upgrading FreeBSD. I think it is a matter some environment variable setting accordingly.
Someboy could help me about?
 
What is your EDITOR variable in your shell config? You can try something like # EDITOR=ee visudo if your shell supports using environmental variables for running commands like that.

For example, i use /bin/sh shell and this is my config for setting EDITOR to editors/vim.

Code:
yusuf@hale:~ $ echo $EDITOR
vim
yusuf@hale:~ $ grep EDITOR .profile
EDITOR=vim;     export EDITOR

I ran # EDITOR=ee visudo and visudo(8) opened with ee(1).

2025-02-20-180223_1920x1080_scrot.png
 
Thank you so much, I use this editor since years ago. It is so easy and practical for using. I'll try to set information you are giving me, later I'll write to you again.
Thank you again. (The keyboard is very mad on my notebook, ha, ha, ha)
 
But just another question... where is the config file you wrote. I have no idea where writing the sentences you gave me.
Thanks you again
 
I have used this code I have found in other site, editing each file and making the changes needed.

Code
1)
/usr/bin/ee /etc/profile

export EDITOR=/usr/bin/ee
export VISUAL=/usr/bin/ee

##########################################################
Code
2)

/usr/bin/ee /root/.profile

EDITOR=/usr/bin/ee
export EDITOR
VISUAL=/usr/bin/ee
export VISUAL

##########################################################
Code
3)

/usr/bin/ee ~/.profile

EDITOR=/usr/bin/ee; export EDITOR

##########################################################
Code:
4)

/usr/bin/ee /etc/csh.cshrc

setenv EDITOR /usr/bin/ee
setenv VISUAL /usr/bin/ee

##########################################################
Code
5)

/usr/bin/ee /root/.cshrc

setenv EDITOR /usr/bin/ee
setenv VISUAL /usr/bin/ee

##########################################################

Code
6)

/usr/bin/ee ~/.cshrc

setenv EDITOR /usr/bin/ee
setenv VISUAL /usr/bin/ee

##########################################################
 
I would recommend learning vi someday, for when you need to learn a different UNIX system, (AIX, Solaris) and because it's just plain powerful once you develop the muscle memory.

I do wonder if there is anyone on this forum that uses ed, which would imply that there is someone out there that still uses a teletype, or that they are just stubborn. ;)
 
Last edited:
Back
Top