I have a path "/third/party/city of las vegas"
when cd the path I use "/third/party/city of las vegas".
In .profile file I have exported the path to a variable as follows
export clv="/third/party/city of las vegas"
when I try to cd $clv it is throwing an error.
How can I export a path which have spaces in the directory name
export clv=/third/party/city\ of\ las\ vegascd "$clv"is fairly long. You can reduce the time by making an alias instead:alias goclv='cd /third/party/city\ of\ las\ vegas'and then just typegoclvevery time you want to go to that dir.