Where is the Linux directory entry

藏色散人
Release: 2023-03-17 09:51:22
Original
2017 people have browsed it

Linux directory entries are in the file directory. In Linux, the file directory is used to identify the physical address of the file in the system and is provided for retrieving files. The file directory entry contains the file name and i-node number. .

Where is the Linux directory entry

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

Where are the Linux directory entries?

Linux files and directories, directory entries in Linux

File path                                                                 ​Path Example: /home/user/test.txt

Relative path: Starting from the current directory to the path to the target file or directory Example: Under the home path, writing uesr/test.txt cannot be written /user/test.txt

    Attributes of the file
  • File type
Everything under Linux is a file, ordinary files, Directory files, device files, link files, socket files, pipe files

Where is the Linux directory entry

Linux directory

represents the special directory Symbols:

Where is the Linux directory entry

    1)~ represents the user’s home directory
  • 2). represents the current directory
3).. Represents the upper-level directory
file directory: used to
identify
in the system File physical address , provided for retrieving files.
The file directory entries include:
File name
    ,
  • i node number
  • Linux directory structure (tree structure)

Where is the Linux directory entry

    File System Hierarchy Standard (FHS)

Where is the Linux directory entry

  • /: The starting point of the linux system directory tree bin:
  • Command file directory
, also called the binary directory

Where is the Linux directory entryboot: Stores the system's

kernel files and boot loader files

dev:

Device files Directory, stores all device files, such as cdrom is a CD device

etc: stores

system configuration files, such as password files

home: contains the home directory

of each user in the system , and the subdirectory name is each user Name

lib: Stores various programming language libraries

media: The automatic mounting point set by the system, such as the automatic mounting point of a U disk

opt: Indicates optional Meaning, some

software packages will be installed here

usr: one of the largest directories. In many systems, this directory is mounted as an independent partition.

Mainly stores data that does not change frequently

, as well as the application directory installed under the system

mnt: Mainly used to

temporarily mount the file system, provided by default for some devices Mount point

proc: virtual file system, the files in this directory are images in memory

sbin: save the command file of the system administrator or root user

tmp : Store temporary files

var : Usually save frequently changing content, such as system logs, mail files, etc.

root : System administrator directory

Related recommendations: "

Linux Video Tutorial

"

The above is the detailed content of Where is the Linux directory entry. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template