1

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?

rajan
  • 869
  • 1
  • 9
  • 24
  • 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 08 '14 at 07:49
  • yes tha was exactly what i wanted to say... thanks anyway i have got my answer – rajan Apr 08 '14 at 07:52

1 Answers1

1

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.

Saurav Kumar
  • 14,916
  • the path is long and folder name contains spaces. – rajan Apr 08 '14 at 07:22
  • This doesn't answer the question. – franzlorenzon Apr 08 '14 at 07: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 08 '14 at 07:25
  • Follow the suggestion, it's nautilus, not natilus :) – franzlorenzon Apr 08 '14 at 07:27
  • @rajan: I've edited my answer.. Good that you've mentioned the path, now it will help to clear your doubt.. Also its nautilus the name of file manager; not natilus ;) – Saurav Kumar Apr 08 '14 at 07:27
  • nothing happened..rajan@rajan-OEM:~$ nautilus /media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/ rajan@rajan-OEM:~$ nautilus /media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/ rajan@rajan-OEM:~$ nautilus /media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/ rajan@rajan-OEM:~$ – rajan Apr 08 '14 at 07:28
  • 1
    I think @rajan wants to open a terminal from nautilus and not the other way around – udiboy1209 Apr 08 '14 at 07:29
  • what is nautilus?? – rajan Apr 08 '14 at 07:29
  • 1
    @rajan nautilus is the file browser or manager in ubuntu. – udiboy1209 Apr 08 '14 at 07:31
  • @rajan: You have to start typing the path with a double quote like this: nautilus "/media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/" or nautilus /media/rajan/EXTRA/BACKUP/EXTRA/"OS AND TOOLS"/ – Saurav Kumar Apr 08 '14 at 07:31
  • i want to open the directory inside terminal to do md5sum ,not opening in file manager – rajan Apr 08 '14 at 07:39