PowerTip: Find Current Working Directory in PowerShell

Summary: Easily find your current working directory in Windows PowerShell.

Hey, Scripting Guy! Question I saved a file to my current working directory while I was working in the Windows PowerShell console,
           but I am not sure how to find where the file is.

Hey, Scripting Guy! Answer Use the Convert-Path cmdlet and specify a period ( ). It displays a file system path to your
           current working directory:


Comments (6)

  1. chirag1 says:

    Needs a space character between the command and the parameter.

  2. carl says:

    What about Get-Location? That also happens to be what pwd (which is familiar to linux shell users) is aliased to.

  3. AussieJohn says:

    pwd is a short alternative (means "print working directory")

  4. Frank says:

    Very nice. Thank you very much!

  5. jitendra says:

    $CurrentDir = $(get-location).Path;

Skip to main content