I ran the following code in a terminal:

python -c "                 
import sys
sys.path = sys.path[1:]
import django

This returns the following path:


but I simply cannot find usr/local (from the GUI). Where should it be?

I'm not sure what other information would help, please let me know!

  • 2
    /usr/local is a location. – psusi Jun 2 '13 at 21:56
  • @psusi I'm pretty sure OP knows it's a location, but apparently he's not familiar with nautilus, which starts you in your home folder, and you need to go up form it to the root directory – Sergiy Kolodyazhnyy Apr 16 '15 at 20:21


sudo cd /usr/local/lib/python2.7/dist-packages

in to terminal. That should take you to the folder

The usr folder is part of the file system, it is accessed from the root of your file system

  • Sorry, I meant is there a way to access it from the GUI? – Colton Jun 2 '13 at 20:37
  • 1
    Type sudo nautilus in to teminal, this gives you access to root folders – SimplySimon Jun 2 '13 at 20:48
  • My pleasure. Glad to be of assistance. :D – SimplySimon Jun 2 '13 at 21:04
  • You do not need to sudo to cd to /usr/local though you would not be able to edit the files. You do need root privileges for editing but the files are visible as a reugular user. – haziz Feb 1 '14 at 14:55
  • 3
    This (accepted) answer here makes absolutely no sense. sudo cd will not even work, since cd is a bash built-in and not an executable. Even if that worked, it would make no sense to use it to get to the wanted location since this location is accessible for everybody anyway. Even if sudo cd worked and this location was not accessible for everybody, it still wouldn't make sense to do that because afterwards you still wouldn't be able to do anything in that folder---not even read its contents. – Malte Skoruppa Apr 16 '15 at 20:07

Where should it be? By default when you open the file manager you run around your home directory(/home/username), same as in windows C:\Users\Username . Notice how /usr/local starts with backslash ? There's root directory from which you can access other directories; the image to keep in mind is the root directory is where root starts, and everything else is branching form it

How to access the folder you need:

Method #1 : press CtrlL in the file manager ( which is called nautilus, by the way) and type /usr/local into the address bar or / .

Method#2: Pressing repeatedly AltArrow Up buttown in file manager will get you to root directory (which is like C:\ folder in windows), and navigate graphically to whatever folder you need from there.

Method #3: Press AltF2 to open "Run command" dialogue and type nautilus /usr/local

cd /usr/local

will get you there

You do need root privileges to edit files there, in which case you can invoke sudo, be very cautious about meddling with files however in the /usr directory and in the root directory / in general.

BTW don't be afraid of the command line! A useful introduction to the CLI is available here.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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