uniqueone
2016. 10. 19. 09:49
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!
|
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
|
answered Jun 2 '13 at 20:33
|
|
|
|
|
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.
|
|
answered Feb 1 '14 at 14:57
|
|
|
|
|
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
|
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