Skip to content

Get home directory of logged in user in Shell

Using a built-in variable:

$ echo $HOME
/Users/anand

Using a tilde:

$ echo ~
/Users/anand
See also  Expose your local application as a public URL using ngrok

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.