Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to parse common Linux file systems

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to analyze Linux common file systems, the content is very detailed, interested friends can refer to, I hope to help you.

Linux common file systems have many uses at work, and the experience of Linux common file systems is introduced. Logically, logging into Linux's common file system is located in these directories, which are called working directories or current directories. The working directory can be changed at any time. When users initially log on to the system, their home directory becomes their working directory. The working directory is marked with ". "indicates that its parent directory is marked with".. "means...

Linux Common File Systems

1. Linux common file system is unstructured character stream form, file name is the file identification, by letters, numbers, underscores and dots composed of string.

There are three basic file types in Linux common file systems:

Common file: is the most familiar with the user's most commonly used files, divided into text files and binary files.

Directory file: The main purpose is to manage and organize a large number of files in the system, which stores a set of related file location, size and other information related to the file. Directory files are generally referred to as directories.

Device files:Linux common file systems treat each I/O device as a file. Handles like normal files.

Introduction to Linux Common File System Directory

1. tree directory structure

Linux common file system to folder directory way to organize and manage all the files in the system, the so-called file directory is all the file description information using tree structure organized together. The entire file system has a "root"ROOT, and then on the root branch "DIRECTORY"(DIRECTORY), any branch can be further branched, branches can also grow "leaves",. Roots and forks are called directories or folders in Linux common file systems. And leaves are files. In fact, under each directory node there will be some files and subdirectories, and the system in the establishment of each directory, it will automatically set up two directory files, one is ". ", representing the directory itself. The other is ".. "Represents the parent directory of this directory.

2. Path to working directory and user home directory

Logically speaking, users log into Linux common file systems, the first time in a directory, these directories are called working directory or current directory. The working directory can be changed at any time. When users initially log on to the system, their home directory becomes their working directory. The working directory is marked with ". "indicates that its parent directory is marked with".. "means...

User home directories are created when system administrators add users. Each user has its own home directory. Home directories for different user services are generally different from each other. When a user logs on to the system, his or her working directory is the user's home directory, usually the same as his or her login name. Users can refer to their home directory with a "~"

#cat ~/tool/software

#cat /home/test/tool/software

These two paths are the same.

Linux Common File System Directory Structure

/root directory

/bin Store necessary commands

/boot Holds the kernel and files needed to boot

/dev holds device files

/etc holds configuration files for the system

/home Home directory of user files where user data is stored

/lib Holds the necessary runtimes

/mnt Store temporary mapping file system

/proc stores process and system information

/root Home directory of superuser

/sbin Storage System Manager

/tmp Directory where temporary files are stored

/usr contains an application, command files, libraries, manuals that do not need to be modified

/var Contains files generated by the system that change frequently

About how to carry out Linux common file system analysis to share here, I hope the above content can have some help for everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report