[Tutor] base directory

Alan Gauld alan.gauld at btinternet.com
Tue May 8 15:34:32 CEST 2007


"Jason Coggins" <jason at asahnekec.com> wrote
> I am new to Linux.  On Windows the base directory 
> is c:\.  

Or D:\ or E:\ etc... In other words Windows has many 
base directories, one per physical drive.

> What is the base directory for Linux?

In *nix there is only one logical directory structure and 
all devices are mapped on to it. The base of this logical 
tree is /.

Thus to use your example

/programs/fileName.py.

Except that there is a conventional set of names so a 
better path would be:

/usr/local/bin/fileName.py

Since /usr/local/bin is the traditional place to store 
programs installed by users (as opposed to admins 
or system utilities). bin here standing for binary and 
not the recycle bin!

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list