Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I tried to md5sum a image but the path is long and contains spaces, and there is no option in the file manager to open that path in gnome-terminal. Like right-click-> open current directory in terminal like it used to be in other or previous Ubuntu.

How can I open a directory in terminal which has long path contains spaces and in Ubuntu?

share|improve this question

marked as duplicate by Aditya, Richard, Danatela, terdon, Ask Apr 14 at 6:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I've edited you question to make it more meaningful. Is this what you wanted to say? Reply if still you've any doubt or you want some modification to the question :) –  Saurav Kumar Apr 8 at 7:49
    
yes tha was exactly what i wanted to say... thanks anyway i have got my answer –  rajan Apr 8 at 7:52

1 Answer 1

up vote 1 down vote accepted

To open a long path or go that path which contains the spaces follow this rule:

cd "the path of the directory"

or if you want to open in GUI way i,e in any file manager.

 nautilus "the path of the directory"

i,e start the path with a double quote (") and keep pressing the Tab key. Pressing the tab key will automatically show the directory you want to open.

for example, to open your path in file manager or in terminal it self:

nautilus "/media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/"

or

nautilus /media/rajan/EXTRA/BACKUP/EXTRA/"OS AND TOOLS"/

or if you want to just go to the path then this command:

cd /media/rajan/EXTRA/BACKUP/EXTRA/"OS AND TOOLS"/

Reply if still you are not clear.

share|improve this answer
    
the path is long and folder name contains spaces. –  rajan Apr 8 at 7:22
    
This doesn't answer the question. –  franzlorenzon Apr 8 at 7:22
    
rajan@rajan-OEM:~$ natilus /media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/ No command 'natilus' found, did you mean: Command 'nautilus' from package 'nautilus' (main) natilus: command not found –  rajan Apr 8 at 7:25
1  
I think @rajan wants to open a terminal from nautilus and not the other way around –  udiboy1209 Apr 8 at 7:29
1  
@rajan nautilus is the file browser or manager in ubuntu. –  udiboy1209 Apr 8 at 7:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.