UNIX For Dummies [Electronic resources]

John Levine, Margaret Levine Young

نسخه متنی -صفحه : 213/ 53
نمايش فراداده

A Map of UNIX

Most UNIX systems have thousands, or even tens of thousands, of files. They are stored in hundreds of directories. Luckily, you don’t care about most of these directories because they contain nothing other than the files that make up the murky technical underbelly of UNIX. You may, however, need to find something in some directory other than your own safe, well-lit home directory. Table 6-1 is a guide to some directories that you’re likely to find on your UNIX system. (Not every UNIX system has all these directories, but most do.)

Table 6-1: Popular UNIX Directories and What They Contain
Directory Name What It Contains
/bin Standard system commands.

/usr/bin More standard system commands.

/usr/contrib/bin Even more standard system commands (the ones contributed by third parties).

/usr/local/bin Nonstandard, locally installed system commands.

/dev Contains connections to devices, such as tape drivers, rather than real files. UNIX uses a terribly clever trick for referring to hardware devices as though they were files.

/etc Miscellaneous system files. Not really interesting to nonweenies.

/home Contains a home directory for each user. (If you don’t see /home , try /usr/home .)
/lib Program libraries and the like. (See our comment about /etc .)
/usr/lib More program libraries and the like. (See our comment about /etc again.)
/tmp Small temporary files.

/usr/tmp Larger temporary files.

/usr/src On systems that come with source code, the source code to the system. (Fascinating to programmers, but not so fascinating otherwise.)
/var/src Another place where source code can be found.

/usr/man and /usr/catman Text of online manual pages.