Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2017, 08:12 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,828
|
|
|
1 members found this post helpful.
|
03-09-2017, 08:21 PM
|
#3
|
Senior Member
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
|
You can not find EDITOR as it is likely not set. If an environment variable has not been defined, then it will not show up in printenv or similar commands.
add
to .profile to set it. Log out, log in for it to take effect.
For a single shell session, you can type the above at a shell prompt. Be aware that it will no longer be set once you exit the shell.
Last edited by goumba; 03-09-2017 at 08:29 PM.
|
|
1 members found this post helpful.
|
03-09-2017, 08:25 PM
|
#4
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep: 
|
Quote:
Originally Posted by frankbell
|
Thank you.
It looks like the shell variable EDITOR does not exists
until the user defines it.
|
|
|
03-09-2017, 10:44 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430
|
It is checked by some utils eg 'crontab -e ..' will look for it.
|
|
1 members found this post helpful.
|
03-13-2017, 07:43 PM
|
#6
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Yes, in multi-seat computer systems with interactive shells and a number of editors
in ~/.bashrc
|
|
1 members found this post helpful.
|
03-14-2017, 01:38 PM
|
#7
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227
|
It's used by things like visudo when it's set. Since they all default to vi, it would only be set if (like me!) you want to avoid the use of vi.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 03:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|