-1

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?

pa4080
  • 29,831

1 Answers1

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