Home  >  Q&A  >  body text

linux - Why can't I enter this folder using the cd command?

There is an aaa folder under the home folder. Why can't I select the aaa folder?

PHP中文网PHP中文网2713 days ago1069

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:27:18

    As it says, because there is no such directory.

    Terms such as "home directory", "home directory", "home folder" and "user directory" refer to ~ 所代表的目录,即分配给这个用户的主要目录。对于普通用户,通常它位于「/home/用户名」。你说的应该是~/aaa,展开来也就是 /home/test/aaa.

    Remember to use ls to view the directory contents.

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:27:18

    cd aaa //Open aaa in the current directory

    cd /aaa //Open aaa in the root directory

    reply
    0
  • Cancelreply