Home > OS >  How to get rid of extra irrelevant PowerShell messages
How to get rid of extra irrelevant PowerShell messages

Time:05-29

When I run echo $PWD I get this verbose message,


Path
----
/home/foo

How can I get rid of the irrelevant messages in the output? I simply need /home/foo just like in a bash environment.

CodePudding user response:

echo $PWD.path

$PWD is an object with a member Path.

  • Related