Working on the command line · Question 6 of 12

Which command, without arguments, lists only the environment variables, that is, the exported ones?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B env

Explanation

set also shows all non-exported shell variables and functions. printenv lists the environment as well.

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