How Do Linux File Directories Work?
A Linux directory is a special file that acts as a container for other files and even other directories. You can create directories to hold groups of related files as an alternative to keeping all your files in one huge directory.
A Linux file system is like a filing cabinet with a bunch of folders, each of which can contain subfolders and files.
After installing Linux and creating a new hermie user account, you'll end up with a file system hierarchy like the one shown here.
/ <-- The root of the file system
|
|
+------------+-------------+
| | | | | | |
| | | | | | |
bin dev etc home sbin root usr <-- Directories below the root
|
+-----+-----+
| |
hermie sigmund <-- User home directories
As you can see, the file system resembles an upside-down tree and is very similar to the treelike directory structure in DOS. The top level is denoted by a slash (/) and is called the root directory. Several system-related directories such as bin, dev, and etc appear below the root directory--here's a summary of their purpose in life:
/bin Contains the Linux system commands and programs (also called binaries). Pronounced "slash bin."
/dev Contains special device files that correspond to hardware components. Pronounced "slash dev."
/etc Contains configuration files for Linux and other installed software. Pronounced "slash et-see."
/home Contains the home directories (personal storage) for each user on the system. Pronounced "slash home."
/sbin Contains more Linux binaries (special utilities not for general users). Pronounced "slash ess-bin."
/root The home directory for the root user; not to be confused with /. Some Linux systems use /home/root instead of /root. Pronounced "slash root."
/usr Contains system programs and other files for general users such as games, online help, and documentation. By convention, a user should not put personal files in this directory. Pronounced "slash user."
Note: Unless you are an All-Knowing Linux Guru, you should never combine or delete any of the directories (or files therein) that appear just below the root directory. This could prevent your system from booting or operating properly.
Previous Lesson: Linux File Names
Next Lesson: Directory Terminology
Comments - most recent first
(Please feel free to answer questions posted by others!)
Thanks for this service
thanx a million
can any one tells us about linux servers such as Asterisk, Qmail and others.
Regard
He is using Google Ads causing the page shift and causing the viewing issues.
Perhaps you could put the diagram in image form? Of course, everybody viewing it from a terminal wouldn't be able to see it then...
I welcome your comments. However... I am puzzled by many people who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn all you can, ask questions if you like. But
don't ask me to send what you already have. :-) NO SPAM! If you post garbage, it will be deleted, and you will be banned.
Copyright © by -
All rights reserved - Redistribution is allowed only with permission.

