How Do I Navigate to a Folder with Spaces in Linux?
Contents

the backslash followed by a space explicitly denotes a space. or after going to /opt , type cd Sub and then press Tab to autocomplete.

How do you go to a folder with spaces?

If you take a folder and drag-and-drop it onto the Command Prompt, it will fill the window with the absolute pathname of that folder. Therefore, to quickly move the Command Prompt to a a specific folder, do the following: Type cd followed by a space. Drag and drop the folder on to the Command Prompt.

How do you use spaces in Linux?

To access a directory having space in between the name use <space> to access it. You can also use Tab button to auto completion of name.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest