Alternatively called working directory or current working directory (CWD), the current directory is the directory or folder where you are currently working. The following sections contain some common use examples involving the current working directory.

Windows current directory

While in Windows Explorer, the current working directory is shown at the top of the Explorer window in a file address bar. For example, if you were in the System32 folder, you would see “C:\Windows\System32” or “Computer > C:>Windows\System32” depending on your version of Windows. In this example, System32 is the current directory.

  • Windows current directory.
  • MS-DOS and Windows command line current directory.
  • Show the current directory in Linux and Unix.
  • How to list files in the current directory.
  • Related directory pages.

MS-DOS and Windows command line current directory

While in Windows a directory is more properly called a folder and not a directory.

In the MS-DOS or Windows command line, the current working directory is displayed as the prompt. For example, if the prompt was “C:\Windows\System32>” the “System32” directory is the current directory, “Windows” is the parent directory, and “C:" is the drive (root directory). To list the files in the current directory use the dir command, and if you want to change the current directory, use the cd command.

  • How to use the Windows command line (DOS).

Show the current directory in Linux and Unix

Depending on your Linux or Unix variant and its shell, the current directory may be shown as the prompt or when using the pwd (print working directory) command.

You can use the chdir command by itself to print the current directory in MS-DOS and the Windows command line.

How to list files in the current directory

To list the files and directories in the current directory depends on your operating system. If you’re using Microsoft Windows or MS-DOS, you can use the dir command to list the files and directories in the current directory. If you’re using Linux, you can use the ls command to list the files and directories in the current directory.

Linux, Operating system terms, Parent directory, Root directory, Unix, WD

  • How to change a directory or open a folder.
  • What is the difference between a relative and absolute path?