Alternatively referred to as the working directory or current working directory (CWD), the current directory is the directory or folder in which 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 active window in what appears to look like an 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.
Tip: While in Windows a directory is more properly referred to as a folder and not a directory.
MS-DOS and Windows command line current 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 or 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.
Tip: You can use the chdir command by itself to print the current directory in MS-DOS and the Windows command line.
Show the current directory in Linux and Unix
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.