POWERSHELL basic commands

POWERSHELL basic commands

cd env:  - will take you to Environment related details
ls - will list all the variables


(ls path).value.split(";")  - will list all the values of the PATH in multiple lines

 $env:path.split(";")  -  will list all the values of the PATH in multiple lines

search for a particular value in PATH

 $env:path.split(";") |select-string java

No comments:

Post a Comment