If you type in command pwd in Windows command prompt to print name of current/working directory and you see the following error,
C:\Users\Code2care>pwd
'pwd' is not recognized as an internal or external command,
operable program or batch file.
Well nothing wrong with the command, but you typed in a Unix command in Window Prompt which is not supported, you would need to use cd command instead to display the current directory you are in,
C:\Users\Code2care>help cd
Displays the name of or changes the current directory.
CHDIR [/D] [drive:][path]
CHDIR [..]
CD [/D] [drive:][path]
CD [..]
.. Specifies that you want to change to the parent directory.
C:\Users\Code2care>cd
C:\Users\Code2care
More Posts related to Bash,
- Bash Hello World! Script Tutorial
- How to run bash command in background
- How to create new user account in Windows bash
- How to Compare Strings in Bash
- Bash: Allow Command to Fail without exiting Script
- Fix bash: script.sh: Permission denied Error
- Bash getopts Command Example
- How to fix bash ping command not found error
- How to add NewLine Character in Bash Script String
- How to Echo Bash Command to a File
- Bash Command to Find String in a File
- How to open new Terminal using Bash Command
- Bash How to Save Output of a Command to a Variable
- Download a SSL Certificate from a URL in Terminal
- Bash Command to Check IP Address
- Know Bash shell version command
- Bash Command To Check If File Exists
- How to run a Command in Bash Script
- How to Compare two Files in Bash Shell
- How to check if a variable is set in Bash Script or Not
- Convert String from uppercase to lowercase in Bash
- How to see Created Accessed Modified and Changed dates of a file using bash terminal command
- Bash Command To Get Current Time
- Bash command to List Files
- Fix: bash: syntax error near unexpected token
More Posts:
- Program 2: Print your name using print() function - 1000+ Python Programs - Python-Programs
- How to Display content of a file in Terminal Screen? - Linux
- [Eclipse] Locate Preferences in macOS - MacOS
- Difference between rustc and cargo build commands - Rust
- Java 8: Find the Max value in a List - Java
- Python: How to add Progress Bar in Console with Examples - Python
- Find Java JRE Installation location Mac OS X - Mac-OS-X
- Mac: Change Screenshot Location - MacOS