Comments (2)
@michaeltreat it worked! thanks so much for your quick response.
from windows-subsystem-for-linux-setup-guide.
Hey @tlin623 , thanks for the compliments on the guide!
This is my bad. The issue is that we should be de-referencing the bash variable when using it, and we should be doing that wether it's a path with a space or not. I will go in and update that line in the guide!
To de-reference a variable, you invoke it with double quotes around it.
Here's an example:
Incorrect:
If you type $wr
then you'll see the error : no such file or directory
Correct
But, if you type "$wr"
then bash will tell you it's a directory.
Note the double quotes around this variable when you call it. That's called de-referencing the variable.
Solution
Your code should look like this:
export wr=~/../../mnt/c/Users/FirstName\ LastName/
alias cdwr='cd "$wr"'
Note the backslash escape character to escape the space between your first and last name.
Also note the double quotes around $wr
This is the link to StackOverflow where I found the answer.
I tested this on my machine and it works, but let me know if it works for you!
Thanks again!
from windows-subsystem-for-linux-setup-guide.
Related Issues (19)
- [P2][Installs]Update for 'Install PostgreSQL using WSL' HOT 3
- Understanding is spelled understaning HOT 1
- Re-open WSL after Updating its Profile HOT 1
- Can't connect to mongo Db
- [P1][01_preface.md][Typos][Content] Content enhancements and Questions.typo on the 01_preface.md page HOT 3
- [P0][Permissions] Incorrect Information - permission restrictions. HOT 4
- Use Git installed in WSL(Windows Subsystem for Linux) from Windows and Visual Studio Code HOT 1
- Updating Terminal HOT 1
- Installing Android studio on WSL/WSL2 HOT 4
- Open Source Call! HOT 5
- How to restart the mongod server? HOT 2
- WSL2 update? HOT 3
- wsl colse with error 0 and close unexpectedly . HOT 1
- Where to write code? HOT 1
- No Dirmngr HOT 1
- Screencast Blurry HOT 3
- Set the Git Config HOT 2
- [P0][Concept][Content] NPM pathing with WSL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-subsystem-for-linux-setup-guide.