What are the folders in the Linux home directory

There is only one root directory, which is /. The home directory is the HOME directory of the current user, which is specified when adding a user. The default HOME directory for general users is /home/xxx (xxx is the user name), and the default HOME directory for root

is the content of the /root root directory file:
/bin: The directory where the executable file is placed, but after all, it is special. are commands that can still be operated in single-user maintenance mode. There are mainly common commands such as cat, chmod, date, mv, mkdir, cp, and bash.
/boot: Place files that will be tried at boot, including linux kernel files, boot menu and configuration files required for boot.
/dev: Any devices and interface devices are stored in this directory in the form of files. To access a file is to access a device.
           The more important files are /dev/null, /dev/zero, /dev/tty, /dev/lp*, /devhd*, /dev/sd*, etc.
/etc: Stores the main configuration files of the system. General users can view file attributes, but only root has permission to modify them.
          The more important files are /etc/inittab, /etc/init.d, /etc/modprobe.conf, /etc/X11/, /etc/fstab, /etc/sysconfig, etc.
          For example: /etc/init.d: ​​The default startup scripts for all services are placed here. For example, to start and close iptables: "/etc/init.d/iptables start", "/etc/init.d/iptables stop".
/home: The system default user home directory (home directory).
          More importantly, the main folder has two designations:
                                                                    ~: Represents the current user's folder
                                                                    ~dmtsail: Represents the main folder of dmtsail
/lib: Places the function library that will be used when starting up, and the function library that will be called by commands under /bin or /sbin.
         More importantly, / The lib/modules directory will place kernel-related modules (drivers).
/media: Places removable devices. Devices including floppy disks, CD-ROMs, DVDs, etc. are temporarily mounted here
/mnt: Mount additional devices, similar to /media, for temporary mounting
/opt: Third-party software placement directory
/root: System administrator's home folder
/sbin: Place the commands required for booting (including booting, repairing, and restoring the system). Common
           server software programs such as fdisk, fsck, ifconfig, init, mkfs are generally placed in /usr/sbin, and the local machine installs all the The generated system execution files are placed in /usr/local/sbin
/srv: It can be regarded as the abbreviation of service, which is the data directory that needs to be accessed after some network services are started.
/tmp: let general users or programs being executed temporarily place file place. anyone can access

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326409089&siteId=291194637