terminal navigation problem
Hi. I'm fairly new to using the terminal, being mainly an xp user. I decided to make the move over the linux and run all my necessary windows apps through wine a few months ago. I have got to say I love Linux.
I have a basic understanding of the terminal but when I try to access my 'Drive_c/Program files (x86)' I recieve the following error bash: syntax error near unexpected token `(' I have no problem using Dolphin to access the files but I really want to get to grips with the terminal a bit more. Thanks. |
Hi and welcome to LQ.
It's because Linux does not usually allow a blank space in file/directory names. That's not a problem though. You just need to 'escape' it. Please type: Code:
cd Prog[Tab]\[space][tab]\[space][tab] |
In fact, it's not Linux's fault, it's bash. Bash uses whitespace characters (space, tab, newline) to seperate "words" and some special characters for special cases (eg parenthesis for expression evaluation order). Filenames can have such characters, but in order to access those files you need to escape those characters, as suggested by sycamorex. In bash the escape character is \ so in your case it would be:
Code:
Drive_c/Program\ files\ \(x86\) Code:
$ cd "Drive_c/Program files (x86)" |
All times are GMT -5. The time now is 07:43 PM. |