<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; linux directories</title>
	<atom:link href="http://www.ghacks.net/tag/linux-directories/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get to Know Linux: File System Hierarchy</title>
		<link>http://www.ghacks.net/2008/12/11/get-to-know-linux-file-system-hierarchy/</link>
		<comments>http://www.ghacks.net/2008/12/11/get-to-know-linux-file-system-hierarchy/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 19:18:31 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[linux directories]]></category>
		<category><![CDATA[linux directory hierarchy]]></category>
		<category><![CDATA[linux directory tree]]></category>
		<category><![CDATA[linux file system]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=8912</guid>
		<description><![CDATA[The Linux file system hierarchy is much different than that of Windows. So much so that it becomes a show stopper for many new users. I hope to clear up a lot of the confusion here and now at gHacks. So, without further adieu, I give you the Linux file system hierarchy.
/ &#8211; This is [...]]]></description>
			<content:encoded><![CDATA[<p>The Linux file system hierarchy is much different than that of Windows. So much so that it becomes a show stopper for many new users. I hope to clear up a lot of the confusion here and now at gHacks. So, without further adieu, I give you the Linux file system hierarchy.</p>
<p><strong>/</strong> &#8211; This is the base, or root, of the file system. Everything in the Linux system is housed in this directory.</p>
<p><strong>/bin</strong> &#8211; This directory contains a number of essential commands that are available to unprivileged users (such as cat, chmod, chown, etc). The <em>/bin</em> directory also houses the shells (such as bash).</p>
<p><span id="more-8912"></span></p>
<p><strong>/boot</strong> &#8211; This directory contains everything necessary for the boot process. Without the <em>/boot</em> directory, your machine would not be able to boot up.</p>
<p><strong>/dev</strong> &#8211; This directory contains all of the special and device files. With Linux all devices and drives have a name. Hard drives tend be labeled as hda, hdb, hdc. Special devices such as external usb devices can be labeled as sda, sdb, sdc.  If you look in the <em>/dev</em> directory you will see quite a few files that can be associated with devices. Most of the devices found here are either block or character devices. Block devices hold data (such as a hard drive) and character devices transmit data (such as a mouse).</p>
<p><strong>/etc</strong> &#8211; This is a very special directory that contains numerous configuration files and directories. This directory will contain the X configurations, Apache, Samba, the init system, etc. The <em>/etc</em> directory also houses the sources for package management systems like apt and yum. One of the most important subdirectoris in <em>/etc</em> is the <em>/etc/init.d </em>(or in Red Hat based systems, <em>/etc/rc.d/init.d</em>). This subdirectory contains all of the initialization scripts for services such as networking, samba, apache, cron, hal, etc.</p>
<p><strong>/home</strong> &#8211; This is where all user data is housed. Each user on the system will have their own subdirectory within <em>/home</em>. All user data and user-specific configuration files are saved here.</p>
<p><strong>/lib</strong> &#8211; This is where all kernel modules needed for system boot libraries that are required by root system commands (commands found in /bin and /sbin.)</p>
<p><strong>/lost+found</strong> &#8211; If your system crashes or is shut down improperly any lost data will be stored here. During a recovery boot the fsck application will attempt to recover corrupt files found here.</p>
<p><strong>/media</strong> &#8211; This is where all external media (or extra internal drives) is mounted. If you make or edit entries in the <em>/etc/fstab</em> file you will point devices (such as /dev/sda to directories withing <em>/media</em>.)</p>
<p><strong>/mnt</strong> &#8211; This is another directory where external (and internal) drives and devices are mounted. This is a holdover to older school thought. Most modern distributions are moving to the <em>/media </em>directory.</p>
<p><strong>/opt</strong> &#8211; This is a directory that can be used for installing applications that are outside of the default installation. When you install applications here they can be used system wide by all users. Only the root user can install applications here.</p>
<p><strong>/proc</strong> &#8211; This is a special directory that is actually a virtual filesystem. The /proc directory acts as a process information center for the kernel.</p>
<p><strong>/root</strong> &#8211; This is the root users home directory.</p>
<p><strong>/sbin</strong> &#8211; This is where all system maintenance/administration executable files are stored. These commands differ from those in <em>/usr/sbin</em> in that they are system commands used for critical system administration and maintenance whereas <em>/usr/sbin</em> are non-critical tasks such as user administration, network administration, etc.</p>
<p><strong>/usr</strong> &#8211; This is one of the largest directories on your system as it contains all user-executable binaries as well as the libraries, documentation, and header files for these executables. One of the most important subdirectories is <em>/usr/bin</em> where all user application executables are stored.</p>
<p><strong>/var</strong> &#8211; This directory contains all variable data such as log files. On a server environment the document root directory of most servers will be found here (<em>/var/www </em>and /var/<em>ftp </em>are examples.)</p>
<p><strong>/srv</strong> &#8211; This directory can contain the services (such as <em>www</em>) directory in some distributions.</p>
<p><strong>/tmp</strong> &#8211; This directory, as you would expect, contains temporary files that are stored as needed. Many files you will find here are lock files created by applications. Do not remove anything from this directory as the cron system has a job specifically created for the removal of these files.</p>
<p>And there you have it. A description of each directory in the Linux file system hierarchy.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-directories/" title="linux directories" rel="tag">linux directories</a>, <a href="http://www.ghacks.net/tag/linux-directory-hierarchy/" title="linux directory hierarchy" rel="tag">linux directory hierarchy</a>, <a href="http://www.ghacks.net/tag/linux-directory-tree/" title="linux directory tree" rel="tag">linux directory tree</a>, <a href="http://www.ghacks.net/tag/linux-file-system/" title="linux file system" rel="tag">linux file system</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/widgets-for-linux-gdesklets/" title="Widgets for Linux: gDesklets (December 6, 2006)">Widgets for Linux: gDesklets</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/12/11/get-to-know-linux-file-system-hierarchy/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
