Meaning of tilde in Linux bash (not home directory)
It’s a Bash feature called “tilde expansion“. It’s a function of the shell, not the OS. You’ll get different behavior with csh, for example. To answer your question about where the information comes from: your home directory comes from the variable $HOME (no matter what you store there), while other user’s homes are retrieved real-time … Read more