美文网首页
目录结构

目录结构

作者: 成江 | 来源:发表于2018-01-07 12:55 被阅读4次
Screen Shot 2018-01-06 at 11.54.32 PM.png image.png

In Linux/Unix, the common premise is that everything is a file.
bin:
binaries, 存放二进制可执行文件

sbin:
super user binaries, 存放二进制可执行文件,只有 root 才能访问

Linux File System Hierarchy

If you look at the Linux file hierarchy, you find the following :

/bin - Common binaries

/sbin - Binaries used for system administration are placed here.

/boot - Static files of the boot loader. Usually it contain the Linux kernel, Grub boot loader files and so on.

/dev - Device files such as your CD drive, hard disk, and any other physical device.

/home - User HOME directories are found here. In unices like FreeBSD, the HOME directories are found in /usr/home. And in Solaris it is in /export. So quite a big difference here.

/lib - Essential shared libraries and kernel modules.

/mnt - Temporary mount point useful for when you insert your USB stick and it gets mounted under /mnt. Though in Ubuntu and the likes, it is usually mounted under /media.

/var - Variable data, such as logs, news, mail spool files and so on which is constantly being modified by various programs running on your system.

/tmp - Temporary files are placed here by default.

/usr - The secondary hierarchy which contain its own bin and sbin sub-directories.

/etc - Usually contain the configuration files for all the programs that run on your Linux/Unix system.

/opt - Third party application packages which does not conform to the standard Linux file hierarchy can be installed here.

/srv - Contains data for services provided by the system.

And of course there is the /proc directory which does not actually reside on the disk.

相关文章

  • Ubuntu常用命令

    一、Windows目录结构和Linux目录结构的区别 windows目录结构 Linux目录结构 二、Linux常...

  • ReactNative模块植入iOS 原生项目经验总结

    项目文件目录结构如下图所示:项目文件目录结构.png 目录结构解释: ReactNative目录:React Na...

  • 目录结构

    目录结构: ${root}/ build/ config/ dist/ node_...

  • 目录结构

    app,应用目录Http,应用文件目录Controllers,控制器文件目录Home,网站(PC)Admin,后台...

  • 目录结构

    图片发自简书App Class:存放的是App中所有的模块功能 Base:存放一些基类,比如BaseViewCon...

  • 目录结构

    ThinkPHP.php:框架入口文件Common:框架公共文件Conf:框架配置文件Extend:框架扩展目录L...

  • 目录结构

    In Linux/Unix, the common premise is that everything is a...

  • 目录结构

    root:root用户的相关文件home:普通用户的相关文件bin:常用命令目录, 存放很多命令的地方sbin:要...

  • 目录结构

    最主要的目的在于减少代码量,提高复用度,降低耦合度,方便后期修改。结构清晰,方便测试。 MVVM:在MVC的基础上...

  • 目录结构

    我们使用了 npm 安装项目,我们在 webstorm(Hbuild、sublim等) 中打开该目录,结构如下所示...

网友评论

      本文标题:目录结构

      本文链接:https://www.haomeiwen.com/subject/ihmpnxtx.html