How to find current user's home directory?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 27 2025
0100

You can find the current user's home directory by using the following command in the terminal:

echo $HOME

Alternatively, you can also use:

echo ~

Both commands will display the path to the home directory of the currently logged-in user.

0 Comments

no data
Be the first to share your comment!