Directories and File System in Linux
Directories and File System in Linux:
In common with other Unix systems and many other operating systems,
Linux disks are organised into a logical tree structure formed of
directories. A directory held within a direcotry is sometimes known
as subdirectory. The base of the tree is known, not unreasonable, as
the root This is represendted by the /(forward slash symbol).
The following diagram shows part of the Linux filesystem(starting from
the root) and shows some common directories found within it:
some root level directories found on all Linux systems are:
contains executable programs(“binary” files) which make up
the commands of the operating system.
contains files related to booting the system, including the
kernal image file itself.
The core of the operating system which is loaded at boot time.
used for special files which represent devices on the system
.Contained in this directory are files representing each hard disk
and partition on the system, each serial and parallel port, a mouse
interface and all other devices.
this is a sort of “miscellaneous” directory which holds all
kind of files related to all kinds of things. Many system configuration
files are here such as teh file which controls the X windows server
and local area network configuration files.
contains th home directories of users on the system. That is
the directory a user finds himself in when he logs on, and in which he has full
libraries(shared program files) used by programs and the
operating system are in this directory.
this is a general mounting point. It is a temporary directory can be used as
This directory contains optional files and packages loaded onto the system.
this is not a real directory, it is simulated by the
operating system, It shows many pieces of information about the
hardware and software of the system.
This is the home directory of the superuser, “root”.
This directory contains system binary files, i.e. executables programs that form
part of the operating system.
This is a drictory in Linux. This direcoty is avaible to all users and programs. This directory is used for storing temporary files and data.
general directory containing several subdirectories with
source code, executable programs, and whole application directories.
this is directory contains variable data like system logs,
print spool files, and lock files.
How to find a location of any file on Linux system:
the location of any file on Linux system can be represented by
writing first the root symbol, followed by the name of each directory,
representing the sub branch of the tree where the file resides.
These elements are separated by more /symbols.
This notation is called path. The example represents the file
“myfile.txt in the subdirectory “John”, located in the root
level directory “home”.
Linux filenames can be any length and are case sensitive. They
can also contain spaces, although you may need to enclose the name in quotes (“and “)
when you pass a filesname to a commadn, so that the commadn knows that it is all one name.
This means that “myfile”, “MyFile” and MYFILE are all diffrent
names and may coexist in the same directory.
- AWS Solution Architect
- blogger toturials
- CISCO Certifications
- Cyber Security Articles
- DIT PART II
- E Commerce and Web Technology
- Front End
- Graphic Design Courses
- hacking books
- hacking courses
- Hacking Tricks
- Kali Linux
- Laptop Repairing Course
- Paper Solution
- tips & tricks
- Udemy courses
- udemy free courses
- wordpress tutorials