Command line · Question 5 of 12
What does the command export EDITOR=nano do in Bash?
1 answer is correct. Easy Created with AI
Show answer
Answer
- B The variable is passed on to every program started afterwards
Explanation
export turns a shell variable into an environment variable that child processes inherit. That does not make it permanent: once the shell is closed it is gone unless you add it to a file such as ~/.bashrc.