In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you how the Linux directory structure is related to knowledge, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can learn something after reading this article, let's take a look at it.
When using Linux, you can see that there are many subdirectories (called first-level directories) under the Linux root directory (/) by typing ls-l / on the command line, such as bin, boot, dev, and so on. At the same time, each primary directory also contains many subdirectories (called secondary directories), such as / bin/bash, / bin/ed, and so on. The Linux file system directory is generally tree-shaped, and the / root directory is equivalent to the tree root.
[root@bogon /] # ls-l total 94 dr-xr-xr-x. 2 root root 4096 Aug 24 04:21 bin dr-xr-xrwx. 5 root root 1024 Nov 14 23:40 boot drwxr-xr-x. 2 root root 4096 Jul 14 2010 cgroup drwxr-xr-x. 17 root root 3760 Dec 19 18:25 dev drwxr-xr-x. 98 root root 4096 Dec 20 18:32 etc drwxr-xr-x. 12 root root 4096 Sep 29 00:29 home dr-xr-xr-x. 10 root root 4096 Aug 24 03:32 lib dr-xr-xr-x. 9 root root 12288 Aug 24 04:21 lib64 drwx-. 2 root root 16384 Aug 24 03:30 lost+found drwxr-xr-x. 2 root root 4096 Dec 4 2009 media drwxr-xr-x. 3 root root 4096 Aug 24 03:36 mnt drwxr-xr-x. 2 root root 4096 Aug 24 03:37 opt dr-xr-xr-x. 188 root root 0 Dec 12 21:56 proc dr-xr-x---. 25 root root 4096 Dec 5 00:19 root dr-xr-xr-x. 2 root root 12288 Aug 24 04:21 sbin drwxr-xr-x. 7 root root 0 Dec 12 21:56 selinux drwxr-xr-x. 3 root root 4096 Sep 29 00:30 srv drwxr-xr-x. 13 root root 0 Dec 12 21:56 sys drwxrwxrwt. 15 root root 4096 Dec 21 01:03 tmp drwxr-xr-x. 13 root root 4096 Aug 24 03:30 usr drwxr-xr-x. 22 root root 4096 Aug 24 03:33 var directory
/ boot system startup related files, such as kernel, initrd, and grub (BootLoader)
/ etc configuration file / home user's home directory, each user's home directory usually defaults to / home/USERNAME/root administrator's home directory / lib library file static library: a library in a program alone, other programs cannot use the library dynamic library: in memory, any program that uses the library can use / lib/modules: kernel module file / media mount point directory, mobile device (insert a CD in windows The system automatically reads the CD and the user can execute it directly, but in linux, you need to mount the device at the mount point before you can use it after inserting the CD. ) / mnt mount point directory, additional temporary file system / opt optional directory, installation directory of third party programs / proc pseudo file system, kernel mapping file / sys pseudo file system, hardware device related attribute mapping file / tmp temporary file, / var/tmp/var changeable file, frequently changed file / bin executable, user command The library file used may be in / lib, the configuration file may be in / etc/sbin executable file, manage commands; the library file used may be in / lib, the configuration file may be in / etc/usr read-only file, shared read-only/usr/local: the third-party software above is all the contents of this article "what is the Linux directory structure?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.