28.09.2018 Views

Linux Dummies 9th

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: Getting to Know the <strong>Linux</strong> Filesystem<br />

109<br />

Table 6-1 lists what you might find in the base directory (that is, in /) in<br />

<strong>Linux</strong>. This list can vary depending on what you installed. An asterisk (*) at<br />

the end of a description indicates that you shouldn’t mess with this directory<br />

unless you have a really good reason because it contains files that are<br />

very important to the functioning of your system. Really, most of the base<br />

directories should be left alone. There are sections inside them that are safe<br />

to change, but you have to know exactly what you’re looking for before rummaging<br />

around in there.<br />

Table 6-1<br />

Directory<br />

/bin<br />

/boot<br />

/dev<br />

/etc<br />

/home<br />

/lib<br />

/media<br />

/mnt<br />

/opt<br />

/proc<br />

/root<br />

/sbin<br />

/srv<br />

/sys<br />

/tmp<br />

/usr<br />

/var<br />

Standard / Contents in <strong>Linux</strong><br />

Contains<br />

Essential commands that everyone needs to use at any time.*<br />

The information that boots the machine, including your kernel.*<br />

The device drivers for all the hardware that your system needs to<br />

interface with.*<br />

The configuration files for your system.*<br />

The home directories for each of your users.<br />

The libraries, or the code that many programs (and the kernel) use.*<br />

A spot where you add temporary media, such as floppy disks and<br />

CD-ROMs; not all distributions have this directory.<br />

A spot where you add extra filesystem components such as networked<br />

drives and items you aren’t permanently adding to your filesystem<br />

but that aren’t as temporary as CD-ROMs and floppies.<br />

The location that some people decide to use (and some programs<br />

want to use) for installing new software packages, such as word<br />

processors and office suites.<br />

Current settings for your kernel (operating system).*<br />

The superuser’s (root user’s) home directory.<br />

The commands the system Administrator needs access to.*<br />

Data for your system’s services (the programs that run in the<br />

background).*<br />

Kernel information about your hardware.*<br />

The place where everyone and everything stores temporary files.<br />

A complex hierarchy of additional programs and files.<br />

The data that changes frequently, such as log files and your mail.<br />

* Some of these directories have some equally important subdirectories, which we cover in the<br />

upcoming sections.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!