Wow, come in to find CSDN write blog updated interface looks more comfortable, and I feel extremely comfortable!
Closer to home, recently I am learning Linux, have to say it feels a bit messy, looking at a folder one after another, this is thing thing ah! ! At this moment I decided to study wave, look at these two true file directory !
I use Ubuntu Ali cloud server, you can see my kernel is this:
Then give me show you what a file folder at the root of what it!
1. / folder (root directory)
Linux is not like Windows drive letter of the same concept, the Linux file structure is a tree structure, since it is necessary to have the tree roots, yes, /目录
that is his roots. It can be said /目录
that the top level of the Linux system, not a bottom-up than he.
We first command: cd /
to enter into this root directory. Inside look at what are some:
Well, we've seen it a bunch of files. Although Linux is only a concept document this, but I used to call these folders. Next we will look at each of these folders are stored in the end what file it.
2. The system starts
2.1 / boot directory
/boot目录
Is simply boot with, here are some of the core is stored in files that are used when you start Linux, including some connection files and image files.
2.2 / etc directory
/etc目录
Inside the store is a very important thing, including all required system configuration files and subdirectories list.
2.3 / lib directory
/lib目录
Is stored in some of the basic code base, and a bit like a Windows DLL file,
2.4 / sys directory
For /sys目录
in fact, I can not yet understand the depth of roughly understanding is that there is a core, being the first to list a link under Linux / sys directory introduce it, later research study.
3. Order Management
3.1 / bin directory
Binary bin is an abbreviation, in this directory, the storage of frequently used commands, for everyone to look at what's inside:
Here we can see the river some commonly used commands,cat,cp,ls...
3.2 / sbin directory
/sbin目录
And in fact /bin目录
somewhat similar, but higher authority, sbin is actually Super Binary, are some of the hypervisor super administrator can use, and we look forward here:
4. External File Management
4.1 / dev directory
dev Device is the abbreviation of this directory is stored inside all external devices under Linux:
in Linux, everything is seen as a file, of course, these devices are also, without exception, and access files like to visit on it.
4.2 / media directory
/media目录
, An external storage device, such as U-disk, CD-ROM Han, will be stored in there.
4.3 / mnt directory
/mnt目录
It is temporary mount another file system, Mandarin, said that after you mount the file system can be accessed through the other path.
5. Temporary Files
5.1 / run directory
/run目录
In fact well understood, since the information is stored in the boot, reboot will be cleared, and then write again.
5.2 / lost + found directory
/lost+found目录
Generally empty, but if the illegal shutdown, then there will be some files.
5.3 / tmp directory
/tmp目录
Like his name, really it is used to store temporary files.
6. all kinds of accounts
6.1 / root directory
/root目录
Is the home directory of the system administrator, you can see that I have been in the identity of a system administrator of the Linux operating system.
6.2 / home directory
/home目录
Is the user's home directory, the user's account is named. There's only one like me admin user.
6.3 / usr directory
/usr目录
May much, where he stored a lot of applications and user files, a bit like under Windows program files文件夹
.
7. Run process
7.1 / var directory
/var目录
The main store frequently modified files, such as logs.
7.2 / proc directory
/proc目录
Even more powerful! This directory is a virtual directory , which is the system memory map, we can get system information directly access this directory through. Contents of this directory is not in memory but on the hard disk , we can also modify some files inside to do the changes directly.
8. expansion
8.1 / opt directory
/opt目录
In general, it empty, used to install additional software, I understand it is, is not enough space elsewhere, this place Minato feeling.
8.2 / srv directory
/srv目录
Need to extract the data store service starts, as the service is what I do not quite understand. But in general, no service time should be empty, just as I do now.