Can I use tilde for other users?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 21 2025
0131

In Linux, the tilde (~) is a shorthand for the home directory of the current user. However, you can also use it to refer to the home directories of other users by specifying the username.

For example, to refer to the home directory of a user named john, you would use:

~john

This allows you to access files or directories in another user's home directory, provided you have the necessary permissions to do so.

0 Comments

no data
Be the first to share your comment!