您的位置:首页 > 运维架构 > Linux

Linux知识:为什么要用字符~来表示home目录

2014-10-27 09:28 155 查看
On Unix-like operating systems (including BSD, GNU/Linux and Mac OS X), tilde often indicates the current user's home directory: for example, if the current user's home directory is 
/home/bloggsj
,
then 
cd
cd
~
cd
/home/bloggsj
 or 
cd
$HOME
 are equivalent. This practice derives from the Lear-Siegler ADM-3A terminal in common use during the 1970s, which happened to have the tilde symbol and the word "Home" (for moving the cursor to the upper left) on the same key.





Photo of Lear-Siegler ADM-3A keyboard you can find on this site.



This terminal is also the source of shortcuts used in the 
vim
 editor: h, j, k, l for
left, down, up, right.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: