Linux Learning (II): Linux file structure directory

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:
Server Core
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:
Root directory
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.
boot folder

2.2 / etc directory

/etc目录Inside the store is a very important thing, including all required system configuration files and subdirectories list.
Here Insert Picture Description

2.3 / lib directory

/lib目录Is stored in some of the basic code base, and a bit like a Windows DLL file,
lib folder

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.
sys folder

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:
bin folder
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:
sbin folders

4. External File Management

4.1 / dev directory

dev Device is the abbreviation of this directory is stored inside all external devices under Linux:
dev folder
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.
media folder

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.
run Folder

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.
home folder

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.
var directory

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.
/ Proc directory

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.

Published 16 original articles · won praise 11 · views 1067

Guess you like

Origin blog.csdn.net/bjtu_linxinyu/article/details/104859100