Re: how to enter a folder named "a a"



all failed, what is your OS? mine is redhat

$ cd "a a"
-bash: cd: a a: No such file or directory
$ cd 'a a'
-bash: cd: a a: No such file or directory
$ cd ./'a a'
-bash: cd: ./a a: No such file or directory
$ cd \"a\ a\"
-bash: cd: "a a": No such file or directory
$ ls
a a
$


cd \"a\ a\" can only enter a folder named "a a"
how to enter a a (without ")
I tried cd a\ a
failed






"Bit Twister" <BitTwister@xxxxxxxxxxxxxxxx> wrote in message
news:slrne2igrq.n77.BitTwister@xxxxxxxxxxxxxxxxxx
On Tue, 28 Mar 2006 15:37:54 +0200, ti1242350 wrote:
I create a folder named "a a" in GUI
how to enter this folder in console using cd command?

I tried in many ways all failed
1.cd "a a"
2.aaa="a a"
cd $aaa
3.cd \\\"a a\\\"

Works for me.

$ cd ~/tmp
$ mkdir "a a"
$ ls
a a junk

$ cd "a a"
$ pwd
/home/bittwister/tmp/a a
$ cd ../
$ pwd
/home/bittwister/tmp
ls -alb
total 32
drwx------ 7 bittwister bittwister 4096 Mar 28 08:05 .
drwx--x--x 33 bittwister bittwister 4096 Mar 28 07:31 ..
drwxr-xr-x 2 bittwister bittwister 4096 Mar 28 08:02 a\ a
drwxr-xr-x 2 bittwister bittwister 4096 Jan 6 19:30 junk



.



Relevant Pages

  • Re: SAN configuration
    ... I checked the above on our Redhat 4.6 but the numbers that's ... there don't appear like WW number/id: ...
    (RedHat)
  • Re: Setting up automatic delete
    ... I think a pretty safe cleanup could be something like: ... go to its directory and check that pwd is ... the 'tmpwatch' cleaner that comes with RedHat. ...
    (comp.sys.sgi.admin)
  • Re: Problem in opening a file
    ... writing pwd, but actually i want to create result file somewhere else ... doesn't create directories, mkdir will ... (Relative paths always refer to [pwd] anyway). ...
    (comp.lang.tcl)
  • Re: Terminal
    ... Trying to move from sg1 to desktop what is the exact command. ... mkdir -p ~/Desktop ...
    (Ubuntu)