In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what are the important subdirectories of the Linux system. I hope you will get something after reading this article. Let's discuss it together.
/ etc/fstab
The machine automatically mounts the partition / disk, which partition / device is specified and where to mount it
[root@oldboy ~] # cat / etc/fstab## / etc/fstab# Created by anaconda on Sun Aug 12 17:26:53 2018 December # Accessible filesystems, by reference, are maintained under'/ dev/disk'# See man pages fstab (5), findfs (8) Mount (8) and/or blkid (8) for more info#UUID=c9b74b1a-41cd-4260-9444-6245ab833dd9 / ext4 defaults 1 1UUID=8880df83-5bf8-40db-bf6f-bf878b7a7e2e / boot ext4 defaults 1 2UUID=3144b92b-c079-4239-9a91-84111d2f1ac1 swap swap defaults 0 0tmpfs / / device to be mounted / dev/shm / / mount point tmpfs// file system type defaults// is mounted on option 0max / whether to back up 0max / Yes Whether to do post check devpts / dev/pts devpts gid=5 Mode=620 0 0sysfs / sys sysfs defaults 0 0proc / proc proc defaults 0 0
/ etc/resolv.conf
DNS temporary profile
[root@oldboy] # cat / etc/resolv.conf; generated by / sbin/dhclient-scriptsearch localdomainnameserver 192.168.182.2 [root@oldboy] # vi / etc/resolv.conf Generated by / sbin/dhclient-scriptsearch localdomainnameserver 192.168.182.2nameserver 8.8.8.8 ~ "/ etc/resolv.conf" 4L 100C written [root@oldboy ~] # cat / etc/resolv.conf Generated by / sbin/dhclient-scriptsearch localdomainnameserver 192.168.182.2nameserver 8.8.8.8
/ etc/hosts
Hostname resolution file:
The corresponding relationship between ip address and domain name is stored in hosts file.
Function:
Used by developers, products, testers, etc., to test products through official domain names
Domain name (internal DNS) can be used for calls between servers to facilitate migration.
[root@oldboy ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/ etc/sysconfig/nework
[root@study ~] # cat / etc/sysconfig/networkNETWORKING=yesHOSTNAME=study / / hostname
Modify hostname
Vim / etc/sysconfig/network
Sed-I-etc/sysconfig/network
/ etc/rc.local
Files stored by boot self-boot program commands (chkconfig is commonly used to manage the self-startup of program services installed by yum/rmp)
/ etc/inittab
Run-level profile
/ etc/issue
Login prompt configuration file
[root@study ~] # cat / etc/issueCentOS release 6.7 (Final) Kernel\ r on an\ m
/ var/log/messages
System information log file
PS: take a look at the Linux subdirectory
Lost+found stores repaired or damaged files
Misc Miscellaneous equipment
Net command line command
Proc images of all running processes
Temporary files that disappear every time tmp reboots
Var extracts the files or temporarily generated files and directories that need to be changed during the operation of the usr directory, so that the usr directory can be mounted read-only.
Boot
Kernel and files needed to load the kernel
Media
It mainly interacts with SessionManager to play and pause multimedia.
Mnt
Attach the directory of the optical drive and USB device. After loading, the directory of the corresponding device will be added in the mnt.
Opt: optional application installation package
Implementation of mandatory access to Directory by selinux
Sys system replication
After reading this article, I believe you have a certain understanding of "what are the important subdirectories of the Linux system". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.