Skip to content

Poop Code

  • Home
  • Linux

Get home directory of logged in user in Shell

October 18, 2024 by poopcode

Using a built-in variable:

$ echo $HOME
/Users/anand

Using a tilde:

$ echo ~
/Users/anand
Categories Linux
How to use Rsync to sync local and remote directories?
Get current user in shell
© 2025 Poop Code • Built with GeneratePress