How to get into cd into directory use double quotes as directory name

 

How to get into or cd into directory that use " double quotes as directory name.

 

   The step by step below show the example how to get into or change directory into directory that use " double quotes as directory name.  Sometimes when you put DVD disk or CD Rom disk inside the drives, the Fedora operating system automatically mount the CD or DVD to something like "FU 20090210 10 i386 DVD" inside the  /media directory so that the full path look like /media/"FU 20090210 10 i386 DVD".  When using the cd command to get into the double quotes directory you may get error... that say something like this "-bash: cd: /media/FU 20090210 10 i386 DVD: No such file or directory".  

 

So ... we start with identify where the DVD or CD disk is mount on the system on step 1 and 2.... the rest is step to get into the double quote named directory...

 

1.  Icon of Auto mount Fedora DVD disk on desktop.

Auto mount Fedora DVD disk on desktop

 

2.  View list of mounted filesystem in Linux Fedora system.

View list of mounted filesystem in Linux Fedora system

[root@fedora ~]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

/proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

gvfs-fuse-daemon on /home/fedora10/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=fedora10)

/dev/sr0 on /media/"FU 20090210 10 i386 DVD" type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=500)

[root@fedora ~]#

 

3.  Example of using cd command to cd ing into fedora DVD that use " double quotes nemed directory that result in error (unsuccessful).

Using cd command to cd ing into fedora DVD that use " double quotes nemed directory that result in error (unsuccessful)

[root@fedora ~]# cd /media/"FU 20090210 10 i386 DVD"

-bash: cd: /media/FU 20090210 10 i386 DVD: No such file or directory

[root@fedora ~]#

 

4.  Then try this... Add single quotes on the directory name as show on example below

Add single quotes on the directory name

cd into cd /media/'"FU 20090210 10 i386 DVD"'

[root@fedora ~]# cd /media/'"FU 20090210 10 i386 DVD"'

[root@fedora "FU 20090210 10 i386 DVD"]#

 

5.  Use pwd command and ls command to verify that you are successfully cd into double quote directory :-).. as shown on example below.

Use pwd command and ls command to verify that you are successfully cd into double quote directory

[root@fedora "FU 20090210 10 i386 DVD"]# pwd

/media/"FU 20090210 10 i386 DVD"

[root@fedora "FU 20090210 10 i386 DVD"]# ls

fedora.css

GPL

images

isolinux

Packages

README-BURNING-ISOS-en_US.txt

repodata

RPM-GPG-KEY-fedora

RPM-GPG-KEY-fedora-10-primary

RPM-GPG-KEY-fedora-i386

RPM-GPG-KEY-fedora-ia64

RPM-GPG-KEY-fedora-ppc

RPM-GPG-KEY-fedora-ppc64

RPM-GPG-KEY-fedora-primary

RPM-GPG-KEY-fedora-test

RPM-GPG-KEY-fedora-test-10-primary

RPM-GPG-KEY-fedora-test-i386

RPM-GPG-KEY-fedora-test-ia64

RPM-GPG-KEY-fedora-test-ppc

RPM-GPG-KEY-fedora-test-ppc64

RPM-GPG-KEY-fedora-test-primary

RPM-GPG-KEY-fedora-test-x86_64

RPM-GPG-KEY-fedora-x86_64

stylesheet-images

TRANS.TBL

[root@fedora "FU 20090210 10 i386 DVD"]#

 

If you have time to killl.. read more about quotes here...

 

Keywords: cd into quotes directory, quotes directory, get into double quotes directory, double quotes directory, cd into double quotes directory 

 

aaaaaaaaaaa