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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications