What directory is '~' when I type 'cd ~'?

前端 未结 11 1754
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 20:32

I\'m only new to using SSH, but when I log in I end up in the directory ~, which in general is the same directory when FTPing in. I can still go to /, but I don\'t know what

11条回答
  •  一整个雨季
    2021-01-05 21:34

    And home, in relation to /, isn't necessarily always in the same place. That's why the ~ shortcut is so useful. The path to home should be in $HOME. Try typing

    echo $HOME

提交回复
热议问题