查看: 1807|回复: 0

[教程] 【一网打尽】Raspberry Pi Course Week 4 – Day 3 (File System Structure)

[复制链接]
  • TA的每日心情
    开心
    2016-8-4 10:56
  • 签到天数: 242 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2015-3-28 12:45:47 | 显示全部楼层 |阅读模式
    分享到:

    For any operating system to function correctly there must to be a file structure in place by which the operating system and programs abide by.  For example when installing programs it is helpful that the programs are located in the same directory and configuration files are located in a configuration directory.

    The raspberry pi file system looks like this.  Version may differ slightly depending on your distribution.

    /
    This is the top or root of the file system.

    /boot

    The boot directory contains information related to the booting process.

    /dev

    The dev directory contains device information including hard drives, serial ports etc.

    /sys

    The sys directory contains special files required by the operating systems.

    /proc

    The proc directory is a virtual directory containing a list of running programs known as processes.


    /etc

    Configuration files and located here along with user logins and encrypted passwords.

    /home

    The home directory contains user data.  When a user is created they will have a directory created here which will be the same as their user name. For example, if a user has been created called bob then under the home directory will be a folder labelled bob.

    /root

    This is the home directory for the root user also known as super user.

    /var

    This folder is used for files that change their size such as system and log files.

    /tmp

    This is the temporary directory.

    /sbin

    Executable files that are used for system maintenance are in this directory .

    /bin

    Executable files exist here that are related to operating system files.

    /usr

    This contains programs that are used for user installed programs.

    /usr/local

    This contains files that have been installed locally.


    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-11-19 13:26 , Processed in 0.108334 second(s), 15 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.