Files and directories under Linux system

A, Linux file system

  • In the daily operation and maintenance work, nearly half of all job content of documents to operate, Linux itself is a Based file format Operating system representation
  • Linux everything is a file. In the windows of a file, the file is also under Linux; the windows is not a document (process) in Linux is also stored as a file.

1. What is a file?

What are generally independent, may be opened by special tools (editor, such as Notepad), and which can not contain other things than the text. (Picture file is, in the final analysis are binary by 01 components.)

2. What is a folder (directory)?

Something which can contain other files.

3, operation of the document

Create a file, edit the file, save the file, close the file, rename files, delete files, recover files.

Second, the Linux file system directory structure

bin dev etc home mnt proc root sbin tmp usr var

1, common directory structure directory

table of Contents Related explanation
bin binary, meaning binary. The directory is stored in some binary files, files are can be run.
dev The directory is stored mainly external devices, such as other optical discs and so on. But in which the external device is not directly used, need to be mounted. (Windows automatically mount, assign a drive letter; Linux manually mount)
etc The main change directory to store configuration files and system management.
home Represent other user's home directory in addition to the root user, similar to the User under windows / user directory
proc process, means the process, which is stored in the directory when running Linux process
root The catalog is a super user root their home directory
sbin super binary, the directory also stores some binaries can be executed, only the root user can access. Here is the stored procedure used by system administrators manage system-level commands.
tmp Indicate a provisional, temporary files when the system is running will be generated in this directory is stored, used up will automatically recover.
usr Users install their own software store, similar to Program files under windows.
where It is stored in a log file directory program / system.
mnt When the need to mount external devices, will mount this directory mnt.
发布了104 篇原创文章 · 获赞 21 · 访问量 7697

Guess you like

Origin blog.csdn.net/ranrancc_/article/details/101529001