Linux:
Files: can write data
Directory: Can not write data directly, you can store files, equivalent to the folder under Windows
You can view information such as the type of Linux file by Ls-1/root or ll/root command:
Plain file-Black C-language source code, shell script, binary executable file. Divided into plain text and binary
Catalog file D Blue the only place to store files
Executable file-Green Ll/usr/bin
Link File | Light blue/sky blue is equivalent to a shortcut under Windows (not Royal right)
Package-Red
Special file C B soil yellow c--character Device---Interface device with serial port-keyboard, mouse
B--Block devices---Interface devices that store data for system access--hard drives, etc.
Pipe file (P-yellow is used to resolve errors caused by multiple programs accessing a file
Socket file (socket) s Lavender color We can listen to the client's network communication, the client through the socket to communicate
Linux directory structure:
/bin Storage System Command
/boot holds the system's boot file and kernel
/dev Device File home directory (device not here, specific device information/proc directory)
/PROC system process and system hardware information
/etc System main profile home directory Windows installed QQ, installation directory in E: disk, C disk will also write the corresponding QQ software information
The QQ file of the C-drive is called the Master profile (System file)---/etc
The file of the QQ installation directory of e-disk is called the configuration file (functional file)---/var
/var system configuration file home directory
Home directory for normal users
/lib&lib64 directory. dll for system library file storage
/usr system Help documentation and source package installation location Source package does not belong to Redhat, belongs to the vast number of hobby developers
The USR directory is the largest directory, the applications and files to be used almost all in this directory
/sbin the directory that the Superuser uses to store the command
/MNT User Mount Directory
/run the directory where the library is currently running (currently running directory)
/root Super User root home directory
/tmp temporary files stored in the directory system will generate some temporary files during startup, these temporary files are stored in the TMP directory
If the TMP directory does not have storage space, the system must not start up
/media removable media mount point
/OPT third-party application file storage directory
Basic directory names, nomenclature, and functional provisions for Linux distributions