Introduction to Linux

1. Linux file system structure: tree structure

/--root directory (unique)
--bin:binary is short for binary, which stores some system-level command files;
--dev:(device), device, can mount some other devices;
--home:home, yes The user's home directory, if there are multiple users, each user will be stored in the form of a directory under the home;
--media: can store some video and other files
--mnt: mainly mount CD-ROM, U disk and other devices;
- -opt: The installation location where other foreign software is stored;
--root: is the directory of the super administrator of the system;
--user: occupies most of the hard disk space, and almost all operations used by users are here;
-- boot: the core file to start the system;
--etc: stores configuration files, such as network configuration files;
--lost+found: stores damaged files when the system crashes;
--lib: resources required by the system library;
 do not modify the above files as much as possible;

Second, the Linux system is a file and directory (folder):

         Permission problem: When viewing the details of the file, there will be permission display: 
type owner
0 123 456 789 ---- file
d rwx rx rx ---- abrt
 
The first character indicates the file type:
         -: ordinary file Identifier
             d: directory identifier
         l: link file identifier
The second to fourth characters represent the owner of the file (usually the creator)
r: readable owner
w: writable
x: executable
The fifth to the first Seven characters represent the permissions of the user group (group), and the
eighth to tenth characters represent the permissions of other groups (other)
 
 
  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325511430&siteId=291194637