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. This is probably the most noob question I've ever asked but I've been having a tough time Googling it due to the length and it not actually coming up.Note: I'm using Amazon Linux on EC2 if it makes any difference.Thanks in advance.
What is the ~/ directory?
shell;directory;directory structure
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.