查看: 1698|回复: 0

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

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

    连续签到: 1 天

    [LV.8]以坛为家I

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

    To navigate the file system you will need to know a few commands.  To locate where you are in the file system enter the following.

    $ pwd

    /home/pi

    This will display you Present Working Directory:

    Enter the following.

    $ cd /

    Enter the pwd command.

    $ pwd

    The terminal will display a / meaning that you are at the root of the file system.

    Enter cd home

    This command will change the directory to the home folder.  Enter the pwd command to confirm this.

    /home

    Enter the following command.

    $ cd pi

    Confirm the directory by enter the pwd command.

    $ pwd

    /home/pi

    Move back a directory by enter the following.

    cd ..

    This will move back a directory.  Make sure you have a space after the cd command.  Confirm this by entering the pwd command.

    $ pwd

    You can also jump directly down the file system without going into each folder.

    $ cd /

    Followed by this.

    $ cd /home/pi

    This command will jump directly down to the pi folder.


    回复

    使用道具 举报

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

    本版积分规则

    关闭

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



    手机版|小黑屋|与非网

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

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

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.