Traditional Culture Encyclopedia - Traditional festivals - Introduction to the file system structure of linux

Introduction to the file system structure of linux

If we want to learn and get started with the linux operating system, then we must first understand its structural characteristics, which the file system structure is also one of the key points, here's an introduction designed to provide you with a simple knowledge of the relevant knowledge, to teach you to get started with this system.

linux file system structure:

1, linux file system refers to the physical space for storing files, similar to Windows disks,

They can be hierarchical hierarchies, forming a directory, equivalent to a folder structure in Windows.

2. Each of these files has its own exclusive name and is unique, helping users to find it.

3, in linux, we search for files by means of index nodes, which are like Windows paths,

which contain information such as the name of the file, when it was created, how long it is, where it belongs to, etc., and are as unique as the file.

4, the file must be named to comply with the following rules:

In addition to "/", all characters can be used;

The best way to not use the escape character, such as "?" , "*" (asterisk), "" (space), "$", "", etc.

Avoid "+", "-" or "". " or "." as the first character of a normal filename (under Linux files beginning with "." files that begin with "." are hidden files);

Linux is case-sensitive for filenames.

5. Wildcards in Linux (20)

(Use them to name and index files)

*: wildcard character, representing any character (0 to many)

: wildcard character, representing a single character

#: comment

\\: escape symbols : the "not" in logical operations

/ : the path splitter symbol

: output-oriented, respectively "replace" and "accumulate"

: Output-oriented, "replace" and "accumulate" respectively

': no variable substitution

": variable substitution

`: quote symbol, two `'s in the middle of the first executable Command

(): start and end of subshell in the middle

[]: combination of characters in the middle

{}: combination of command blocks in the middle

: execute the next command when the previous command of this symbol succeeds

||: execute the next command when the previous command of this symbol fails