I have often wondered why the ~ (tilde) represents the home directory of a user. Is there a reason behind this, or is it just some infrequently used character?
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
cd $HOMEare 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 the movement commands used in the
vi editor: h, j, k, l for left, down, up, right.
The Home key was also used for the tilde character on old terminals. See here for more details.
protected by Kusalananda♦ Mar 20 '17 at 15:31
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?