Session and utilities

The env command

Shows all current environment variables.

Syntax

env

Copy-ready examples

$ envAll the variables
$ env | grep PATHOnly the PATH

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • There are a lot: filter them with grep when looking for a specific one.

Related commands

FAQ

What is the PATH?

The list of folders where the system looks for the commands you type.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course