Current Dir
Current Dir
Current directory 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 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.
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 (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
Depending on your variant of Linux or Unix and the shell you're using the current directory may be shown as the prompt, or can be seen by using the pwd (print working directory) command.
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.
What is an Operating System? » Computer Shortcut Keys and their Functions » Keyboard Function Keys » Computer Basics - Hardware - Software - Parts
Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
Proverb Stories
Powerful Motivational Quotes for Students » Success Quotes » English Short Stories for Kids
Cabin Crew Jobs & Career Advice » Secretary Job Description » Receptionist Job Description » Top 100 Interview Questions and Answers » How to Prepare for an Interview » How to Write a CV » How to Choose a Career » Computer Shortcut Keys and their Functions
Scholarships in Australia » Scholarships in Austria » Scholarships in Belgium » Scholarships in Canada » Scholarships in Germany » Scholarships in Ireland » Scholarships in Italy » Scholarships in Japan » Scholarships in Korea » Scholarships in Netherlands » Scholarships in Switzerland » Scholarships in UK » Scholarships in USA
Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
Proverb Stories
Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK » Success Quotes »Scholarships in UK » Success Quotes »
Click here to post comments
Join in and write your own page! It's easy to do. How? Simply click here to return to Computer Basics FAQ.