Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, Maythux Apr 14 '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 '14 at 7:49
yes tha was exactly what i wanted to say... thanks anyway i have got my answer – rajan Apr 8 '14 at 7:52
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/"


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

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


Reply if still you are not clear.

share|improve this answer
the path is long and folder name contains spaces. – rajan Apr 8 '14 at 7:22
This doesn't answer the question. – franzlorenzon Apr 8 '14 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 '14 at 7:25
I think @rajan wants to open a terminal from nautilus and not the other way around – udiboy1209 Apr 8 '14 at 7:29
@rajan nautilus is the file browser or manager in ubuntu. – udiboy1209 Apr 8 '14 at 7:31

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