I have a folder called DAT
on the desktop. I am not sure what I did the folder disappeared. Using find command find / -name DAT 2>/dev/null
. This is the output /home/t-gang/ /DL4PL
. I mean what is this path I could not even cd
to. How can I find my folder?
Asked
Active
Viewed 91 times
-1

pa4080
- 29,831

user1935724
- 99
1 Answers
1
To access path or file, which name contains special characters, we must quote these characters:
Single character's quotation with backslash, that will quote only the symbol next to it:
cd /home/t-gang/\ \ /DL4PL
or, when you are in the home directory:
~$ cd \ \ /DL4PL
Multiple character's quotation with single quotes[1], that will quote the entire string:
cd '/home/t-gang/ /DL4PL'
or:
~$ cd ' /DL4PL'
or:
cd /home/t-gang/' '/DL4PL
etc.

pa4080
- 29,831
DL4PL
the folder renamed or the content of the folder (DAT
)? – George Udosen Sep 03 '17 at 06:08find / -name DAT
cannot produce matches that don't have the nameDAT
. Are you sure this is what the command output was? – David Foerster Sep 11 '17 at 09:59