55
rated 0 times
[
55]
[
0]
/ answers: 1 / hits: 138203
/ 1 Year ago, thu, april 6, 2023, 5:30:27
I want to enter the following folder in the terminal:
Milano, Torino (Jan)-Compressed
How should I write the command cd
to enter this directory?
Spaces and several other special characters like ,
*
, )
, (
and ?
cause problems when I try to use them in the command line or scripts, e.g.:
$ cd space dir
bash: cd: space: No such file or directory
$ cat space file
cat: space: No such file or directory
cat: file: No such file or directory
$ cat (
bash: syntax error near unexpected token `newline'
$ echo content >
> ^C
$ ls ?
( ) * ?
How do I enter file or directory names that contain special characters in the terminal in general?
More From » command-line