In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The Linux kernel was originally written by Finn Linus Torvalds out of his own hobby when he was a student at the University of Helsinki. Linux is a free-to-use and free-spread Unix-like operating system. It is a multi-user, multi-task, multi-threaded and multi-CPU operating system based on POSIX and UNIX. Linux can run major UNIX tools, applications, and network protocols. It supports 32 bit and 64 bit hardware. Linux inherits the design idea of Unix with network as the core, and is a multi-user network operating system with stable performance.
Teach you to play Linux- system directory structure teach you to play Linux- system directory structure
After logging in to the system, enter the command under the current command window:
Ls /
You will see the following figure:
Teach you to play Linux- system directory structure teach you to play Linux- system directory structure
Tree directory structure:
Teach you to play Linux- system directory structure teach you to play Linux- system directory structure
Here is an explanation of these catalogs:
/ bin:bin is an acronym for Binary, and this directory holds the most frequently used commands.
/ boot: here are some core files used to start Linux, including some connection files and image files.
/ dev: dev is the abbreviation of Device (device). The external devices of Linux are stored in this directory. The way to access the device in Linux is the same as the way to access files.
/ etc: this directory is used to store all the configuration files and subdirectories needed for system administration.
/ home: the user's home directory. In Linux, each user has his or her own directory, which is usually named after the user's account.
/ lib: this directory stores the system's most basic dynamic link shared library, which works similar to the DLL file in Windows. Almost all applications need to use these shared libraries.
/ lost+found: this directory is usually empty. When the system shuts down illegally, some files are stored here.
/ media:linux system will automatically identify some devices, such as USB flash drive, optical drive, etc., when identified, linux will mount the identified devices to this directory.
/ mnt: the system provides this directory to allow users to mount other file systems temporarily. We can mount the CD-ROM drive on / mnt/, and then enter the directory to view the contents of the CD-ROM drive.
/ opt: this is the directory where additional software is installed for the host. For example, if you install an ORACLE database, you can put it in this directory. The default is empty.
/ proc: this directory is a virtual directory, which is a mapping of system memory. We can get system information by accessing this directory directly. The contents of this directory are not on the hard disk but in memory. We can also modify some files directly. For example, you can use the following command to block the ping command of the host, so that others cannot ping your machine:
Echo 1 gt / proc/sys/net/ipv4/icmp_echo_ignore_all
/ root: this directory is the user home directory of the system administrator, also known as the super-privileged.
/ sbin:s means Super User, and the system management program used by the system administrator is stored here.
/ selinux: this directory is unique to Redhat/CentOS. Selinux is a security mechanism, similar to windows's firewall, but this mechanism is more complex. This directory stores selinux-related files.
/ srv: this directory stores some data that needs to be extracted after the service is started.
/ sys: this is a big change in the linux2.6 kernel. A new filesystem sysfs in the 2.6 kernel is installed in this directory. The sysfs file system integrates the following three types of file system information: the proc file system for process information, the devf file system for devices, and the devpts file system for pseudo-terminals. The file system is an intuitive reflection of the kernel device tree. When a kernel object is created, the corresponding files and directories are also created in the kernel object subsystem.
/ tmp: this directory is used to store some temporary files.
/ usr: this is a very important directory where many of your applications and files are placed, similar to the program files directory under windows.
/ usr/bin: the application used by the system user.
/ usr/sbin: more advanced hypervisors and system daemons used by superusers.
/ usr/src: the default placement directory for kernel source code.
/ var: this directory contains things that are constantly expanding, and we are used to putting directories that are often modified in this directory. Including various log files.
/ run: is a temporary file system that stores information since the system was started. When the system restarts, the files in this directory should be deleted or erased. If you have a / var/run directory on your system, you should make it point to run.
In the Linux system, there are several directories are more important, usually need to be careful not to delete or change the internal files at will.
/ etc: as mentioned above, this is the configuration file in the system, and if you change a file in this directory, the system may not be able to boot.
/ bin, / sbin, / usr/bin, / usr/sbin: this is the directory where the system preset execution files are placed. For example, ls is in the / bin/ls directory. It is worth mentioning that / bin, / usr/bin are instructions for system users (except root users), and / sbin, / usr/sbin are instructions for root.
Extended Learning:
Https://www.51cto.com/it/news/2019/1202/17111.html
Https://article.pchome.net/content-2104929.html
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.