EzeeLinux Show 18.7 | The Linux File system Demystified

EzeeLinux Show 18.7 | The Linux File system Demystified

Description: Linux Filesystem Basics


“Directory”     A special kind of file that contains links to other files.

“File”          is a self-contained piece of information available to the
operating system and any number of individual programs. Files
are owned by the user who creates them.

“Filesystem”    Can refer to the filsystem hierarchy (the way files are
organized and managed) or it can refer to the type of
format that is used to store files on a block device
such as Ext4, XFS Fat32 and NTFS.

“Folder”        Another name for a directory, especially when working in
graphic environments. Interchangeable with the term

“Link”          Refers to a file that points to another file or directory
(symbolic link) or it can refer to a file that has more than
one name. (hard link)

“Mount”         Refers to the way devices are made to appear in a Unix/Linux
filesystem. Partitions on hard drives, USB sticks and CD/DVD
are “mounted” to a directory somewhere in the filesystem. This
can be done automatically or manually by a user with root

“Path”          A path points to a file system location by following the
directory tree hierarchy. Example:


“Permissions”   File attributes that define who can access or change a file
and whether a file can be executed as a program.

“-rwxr-xr-x” Shows file type and permissions.

| d———  | File Type    |
|    – = regular file        |
|    d = directory           |
|    l = link                |
| Permission  | Octal| Field |
| -rwx——  | 700  | User  |
| —-rwx—  | 070  | Group |
| ——-rwx  | 007  | Other |

Octal values:

Read    = 4
Write   = 2
Execute = 1

8 bits = 1 byte. Uses digits 0 1 2 3 4 5 6 7.

You can set permissions in the file manager or with the commend
“chmod.” Examples:

Set a file to be executable and readable by
by everyone but only writable by you:

‘chmod 755 filemane’

Set execute bit without changing other permisions:

‘chomd +x filename’

When applying permissions to directories on Linux, the
permission bits have different meanings than on regular files.
The write bit allows the affected user to create, rename, or
delete files within the directory, and modify the directory’s
attributes. The read bit allows the affected user to list the
files within the directory. The execute bit allows the affected
user to enter the directory and access files and directories

“Root”          Can refer to the base of a filesystem (“/”) or a user with
administrator privileges for a Unix/Linux computer.

“Tree”          A way to visualize filesystem structure.

├── Dir
│   ├── File
│   ├── File
│   └── Dir
│       └── File
├── File
└── File
Please be sure to give EzeeLinux a ‘Like’ on Facebook! Thanks! https://www.facebook.com/EzeeLinux
Check out http://www.ezeelinux.com for more about Linux.

Joe Collins
Joe Collins worked in radio and TV stations for over 20 years where he installed, maintained and programmed computer automation systems. Joe also worked for Gateway Computer for a short time as a Senior Technical Support Professional in the early 2000’s and has offered freelance home computer technical support and repair for over a decade.

Joe is a fan of Ubuntu Linux and Open Source software and recently started offering Ubuntu installation and support for those just starting out with Linux through EzeeLinux.com. The goal of EzeeLinux is to make Linux easy and start them on the right foot so they can have the best experience possible.

Joe lives in historic Portsmouth, VA in a hundred year old house with three cats, three kids and a network of computers built from scrounged parts, all happily running Linux.

Leave a Comment