当我输入“cd〜”时,什么目录是“〜”? [英] What directory is '~' when I type 'cd ~'?
本文介绍了当我输入“cd〜”时,什么目录是“〜”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是新使用SSH,但当我登录我最后在目录〜,这通常是相同的目录,FTP时,我仍然可以去/,但我不知道什么〜手段。家?
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 the ~ means. Home? Where is it in relation to /, or how could I find out?
推荐答案
〜是当前登录的用户的别名主目录。要找出真正的位置,请在登录后输入 pwd
(代表:打印工作目录)到 /
。它可能类似:
~ is an alias to the currently logged in users home directory. To find out where that really is, type pwd
(stands for: Print Working Directory) right after logging in, which should give you the location relative to /
. It's probably something like:
/home/myusername
这篇关于当我输入“cd〜”时,什么目录是“〜”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文