< A Quick Introduction to Unix

All Unix files are integrated in a single directory structure. The file-system is arranged in a structure like an inverted tree. The top of this tree is the root and is written as a slash ‘/’.

Unix file structure from root to file

In the diagram on the left, we see that the home directory of the user ccaajim contains two sub-directories (stats and pictures) and a file called train.doc.

The full path to the file train.doc is /nfs/fs-i/UM0098/ccaajim/train.doc

This is rather different from the view you get of a Windows file structure. Unix integrates all the files into one directory structure rather than listing different physical storage devices each with its own root. The filestructure is logical rather than physical. If the computer had a CD ROM drive then it might appear as a folder under, say, nfs, called cd.

You will find some directories on all (or almost all) Unix systems and it may help to have an idea what they contain, even if most users will never go near some of them.

Directory nameTypical contents
/bincommands and programs used by all the users of the system
/bootfiles required by the boot loader
/devCD/DVD-ROM, floppy drives, USB devices, etc.
/etcSystem configuration files
/homeUser data files
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.