In several shells such as Bash you can use "~[USER]" as a shorthand for an user home directory (If USER is not specified, it defaults to you, the user as whom the shell is running). For instance, to change to your home directory you can do "cd ~" or just "cd" as "cd" defaults to it. To change to "bob" downloads directory, do "cd ~bob/Downloads". Note that having user directories as their username under "/home" is a common convention, but it's not always the case. Using the "~" syntaxis will give the correcect directory even when it's not in "/home".

Regards.

Reply via email to