OS - Home environment Variable (tilde)
About
The special home directory is the user's home directory. It is set in a environment variable
Location
Windows
- System: C:\Windows\system32\config\systemprofile or C:\Windows\system32
- Users: C:\Users\login
echo %USERPROFILE%
C:\Users\userName
Linux
- User: ~/ or HOME
- System: /etc/
WSL (Windows Linux)
| Wsl Distribution | Home Path |
|---|---|
| Ubuntu 20.04 | \\wsl$\Ubuntu-20.04\home\username |
| Debian | \\wsl$\Debian\home\username |
