Linux的目录结构
31 Questions
23 Views

Linux的目录结构

Created by
@AdvancedAspen

Questions and Answers

/bin/

存放系统命令的目录,普通用户和超级用户都能使用。是/usr/bin/目录的软链接。不能动

/sbin/

存放系统命令的目录,只有超级用户才能使用。是/usr/sbin/目录的软链接。不能动

/boot/

系统启动目录,保存与系统启动相关的文件,如内核启动与引导程序。不能动

/dev/

<p>硬件映射文件保存目录。不能动</p> Signup and view all the answers

/etc/

<p>配置文件保存目录,系统内所有采用默认安装(RPM包安装)的服务配置文件如用户信息,服务的启动脚本,常用服务的配置文件。按规范要求修改配置,不得增删文件。</p> Signup and view all the answers

/home/

<p>普通用户的家目录,用“~”表示。</p> Signup and view all the answers

/lib/

<p>系统调用的函数库保存位置。不能动</p> Signup and view all the answers

/lib64/

<p>系统调用的函数库保存位置。不能动</p> Signup and view all the answers

/media/

<p>预留挂载目录,主要用于挂载软盘和光盘的。不咋用。</p> Signup and view all the answers

/mnt/

<p>常用预留挂载目录,主要用于挂载U盘、移动硬盘等。</p> Signup and view all the answers

/opt/

<p>第三方源码包安装软件的安装位置。不咋用。行业约定俗成/usr/local/才是第三方源码包安装软件的安装位置。</p> Signup and view all the answers

/proc/

<p>虚拟文件系统,数据都存在内存里。不能动</p> Signup and view all the answers

/sys/

<p>虚拟文件系统,数据都存在内存里。不能动</p> Signup and view all the answers

/root/

<p>超级用户的家目录,也用“~”表示</p> Signup and view all the answers

/run/

<p>系统运行时产生的数据保存位置,类似于任务管理器。不能动</p> Signup and view all the answers

/srv/

<p>服务数据目录,不能动</p> Signup and view all the answers

/tmp/

<p>临时文件目录</p> Signup and view all the answers

/usr/

<p>系统软件资源目录,系统中安装的软件大多数保存的位置,不能动</p> Signup and view all the answers

/usr/lib/

<p>应用程序调用的函数库的位置,不能动</p> Signup and view all the answers

/usr/local/

<p>第三方源码包安装软件的安装位置。</p> Signup and view all the answers

/usr/share/

<p>应用程序的资源文件保存位置如帮助文档、说明文档等</p> Signup and view all the answers

/usr/src/

<p>源码包安装包保存位置,一般使用的是/usr/local/src/</p> Signup and view all the answers

/usr/src/kernels/

<p>内核源码包安装包保存位置</p> Signup and view all the answers

/var/

<p>系统动态数据保存位置,如日志、缓存等。不能动</p> Signup and view all the answers

/var/www/html/

<p>RPM包安装的Apache网页主目录。</p> Signup and view all the answers

/var/log/

<p>日志目录:messages(消息日志)、secure(安全日志)、lastlog(重要系统痕迹日志)、wtmp(重要系统痕迹日志)。</p> Signup and view all the answers

/var/run/

<p>系统运行时产生的数据保存位置,主要是PID</p> Signup and view all the answers

/var/spool/

<p>放置队列数据保存位置</p> Signup and view all the answers

/var/spool/mail/

<p>新收到的邮件队列保存位置</p> Signup and view all the answers

/var/spool/cron/

<p>系统的定时任务计划保存位置</p> Signup and view all the answers

/var/lib/mysql/

<p>RPM包安装的MySQL数据库保存位置。</p> Signup and view all the answers

More Quizzes Like This

Linux Knowledge Quiz
5 questions

Linux Knowledge Quiz

ImaginativeLavender avatar
ImaginativeLavender
Linux Command Line Syntax Quiz
15 questions

Linux Command Line Syntax Quiz

AstonishingPermutation avatar
AstonishingPermutation
Use Quizgecko on...
Browser
Browser