Quote:
Originally Posted by buzzkill.hardball.667
root@Buzzkill:~/Music# ls
Downloaded ftom G.P.
root@Buzzkill:~/Music# cd Downloaded from G.P.
bash: cd: Downloaded: No such file or directory
root@Buzzkill:~/Music#  
|
Hi,
First of all there are certain characters in Bash which are used by the shell for control so you basically need to
escape these characters when you want to use their literal meaning.
For example, the good old whitespace character " ". Whitespaces usually separate arguments on the command line. This is why, by the way, that it is not good practice to use whitespaces in dir/file names because they might cause problems in scripts.
So, the command
Code:
cd Downloaded from G.P.
basically tells Bash that you want to change to directory "Downloaded" and, "from" and "G.P." are just additional arguments.
Therefore, if you want to include the whitespaces in the file name, you should
escape the whitespaces like this:
Code:
cd Downloaded\ from\ G.P.
Or you can also use quotes which tell Bash that everything between the quotes is a single parameter.