Print current working directory (hereinafter in – cwd) in Unix fashion :
pwd # C:\Users\<user-name>
Print current working directory in Windows fashion :
cmd //c cd # e.g. /c/Users/<user-name>
We could even write a small Node.js utility that checks type of OS & depending on the OS print its corresponding CWD :
<--- WILL INCLUDE THE CODE BASE LATER [LIVE:DRAFT so STAY TUNED] ---->
Top comments (0)