directory with a space
In the console how do you access a directory that has a space in the name? i.e. a directory with the name system files
|
Use spaces around the name eg: ls 'system files'.
Be aware that most Unix/Linux cmds do not cope well with this scenario ie try to avoid using spaces in names if possible. edit: oops... yes i meant use quotes.... BTW, I think myriad-zero means leading backslash ie \ The advantage of using single quote marks is that if the dirname is stored in a variable. you don't have to parse it and insert the leading \'s. |
Two options to change to the directory with the name "system files"
Code:
# cd "system files" Code:
# cd system\ files HTH. |
I think chrism01 meant use quotation marks around the path string. There's many different types though (" ` ') and it isnt the best solution. I'm assuming the system files directory is on a mounted windows drive so it's probably best to not rename it, so be careful when manipulating it.
|
Thanks that solved my problem.
|
All times are GMT -5. The time now is 01:27 AM. |