I'm trying to locate where some files are stored and I can easily browse to them via ssh by going to "cd ~/foldername", however, I have no idea what directory "~/" actually is.
When I browse around folders via WinSCP (yes, I'm a Windows admin), I can't seem to locate this folder at all.
Note: I'm using Amazon Linux on EC2.
Best Answer
The tilde character is shorthand for the home directory of the current logged-in user. If you are logged in as jason, then
~
is likely/home/jason/
. It is the home directory of any username, as given in /etc/passwd. It is also the same as the $HOME environment variable. The expansion from~
to the home directory is done by the shell.