http://askubuntu.com/questions/303290/where-is-usr-local



I ran the following code in a terminal:

python -c "                 
import sys
sys.path = sys.path[1:]
import django
print(django.__path__)"

This returns the following path:

['/usr/local/lib/python2.7/dist-packages/django']

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!

shareimprove this question


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 – Serg Apr 16 '15 at 20:21
up vote 0 down vote accepted

type

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

shareimprove this answer

    
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
    
Alright I got it, thanks. – Colton Jun 2 '13 at 20:52
    
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
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.

shareimprove this answer

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

Posted by uniqueone
,