Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get PATH environment variable in PowerShell

I want to check the PATH environment variable in PowerShell

I've tried

Get-ChildItem env:path

I want to get the complete path, but get only a very small part of it. How much I get depends on the width of the PowerShell window, e.g.

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Progra...
like image 384
Axel van Moorsel Avatar asked Sep 03 '25 02:09

Axel van Moorsel


1 Answers

If want to see the full path, one method is to use echo:

echo $env:path
like image 134
cha5on Avatar answered Sep 04 '25 23:09

cha5on