About Linux File System Hierarchy | blog-windows Blog
Hell all,
In corporate environment almost 70% servers are Linux Based OS so there is demand for company to get the employee which is very well aware of Linux OS.
Here is first Basic Article for Newbie to know how Linux OS is divided and wat is file structure.
kindly refer below snap to get it clear.
Hell all,
In corporate environment almost 70% servers are Linux Based OS so there is demand for company to get the employee which is very well aware of Linux OS.
Here is first Basic Article for Newbie to know how Linux OS is divided and wat is file structure.
kindly refer below snap to get it clear.
Linux file system description
In order to manage all those files in an orderly fashion, man likes to think of them in an ordered tree-like structure on the hard disk, as we know from
(Disk Operating System) for instance. The large branches contain more branches, and the branches at the end contain the tree’s leaves or normal files. For now we will use this image of the tree, but we will find out later why this is not a fully accurate image.DIRECTORY | DESCRIPTION |
---|---|
Primary hierarchy root and root directory of the entire file system hierarchy. | |
Essential command binaries that need to be available in single user mode; for all users, e.g., cat, ls, cp. | |
Boot loader files, e.g., kernels, initrd. | |
Essential devices, e.g., | .|
Host-specific system-wide configuration filesThere has been controversy over the meaning of the name itself. In early versions of the UNIX Implementation Document from Bell labs, /etc is referred to as theetcetera directory, as this directory historically held everything that did not belong elsewhere (however, the FHS restricts /etc to static configuration files and may not contain binaries). Since the publication of early documentation, the directory name has been re-designated in various ways. Recent interpretations include backronyms such as “Editable Text Configuration” or “Extended Tool Chest”. | |
Configuration files for add-on packages that are stored in | .|
Configuration files, such as catalogs, for software that processes SGML. | |
Configuration files for the X Window System, version 11. | |
Configuration files, such as catalogs, for software that processes XML. | |
Users’ home directories, containing saved files, personal settings, etc. | |
Libraries essential for the binaries in | and .|
Alternate format essential libraries. Such directories are optional, but if they exist, they have some requirements. | |
Mount points for removable media such as CD-ROMs (appeared in FHS-2.3). | |
Temporarily mounted filesystems. | |
Optional application software packages. | |
Virtual filesystem providing process and kernel information as files. In Linux, corresponds to a procfs mount. | |
Home directory for the root user. | |
Essential system binaries, e.g., init, ip, mount. | |
Site-specific data which are served by the system. | |
Temporary files (see also | ). Often not preserved between system reboots.|
Secondary hierarchy for read-only user data; contains the majority of (multi-)user utilities and applications. | |
Non-essential command binaries (not needed in single user mode); for all users. | |
Standard include files. | |
Libraries for the binaries in | and .|
Alternate format libraries (optional). | |
Tertiary hierarchy for local data, specific to this host. Typically has further subdirectories, e.g., | , , .|
Non-essential system binaries, e.g., daemons for various network-services. | |
Architecture-independent (shared) data. | |
Source code, e.g., the kernel source code with its header files. | |
X Window System, Version 11, Release 6. | |
Variable files—files whose content is expected to continually change during normal operation of the system—such as logs, spool files, and temporary e-mail files. | |
Application cache data. Such data are locally generated as a result of time-consuming I/O or calculation. The application must be able to regenerate or restore the data. The cached files can be deleted without loss of data. | |
State information. Persistent data modified by programs as they run, e.g., databases, packaging system metadata, etc. | |
Lock files. Files keeping track of resources currently in use. | |
Log files. Various logs. | |
Users’ mailboxes. | |
Variable data from add-on packages that are stored in | .|
Information about the running system since last boot, e.g., currently logged-in users and running daemons. | |
Spool for tasks waiting to be processed, e.g., print queues and outgoing mail queue. | |
Deprecated location for users’ mailboxes. | |
Temporary files to be preserved between reboots. |
Types of files in Linux
Most files are just files, called
files; they contain normal data, for example text files, executable files or programs, input for or output from a program and so on.While it is reasonably safe to suppose that everything you encounter on a Linux system is a file, there are some exceptions.
- : files that are lists of other files.
- : the mechanism used for input and output. Most special files are in , we will discuss them later.
- : a system to make a file or directory visible in multiple parts of the system’s file tree. We will talk about links in detail.
- : a special file type, similar to TCP/IP sockets, providing inter-process networking protected by the file system’s access control.
- : act more or less like sockets and form a way for processes to communicate with each other, without using network socket semantics.