Session and utilities
The env command
Shows all current environment variables.
Syntax
envCopy-ready examples
$ envAll the variables$ env | grep PATHOnly the PATHYou 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.
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