Home > Help Files > Unix > Tilde

Tilde (~) Information


The C shell uses the tilde character to represent the login area of users. This provides a quick and easy way to change to a user's login directory. When the shell finds a tilde in a command, it checks the next word. If the word following the tilde matches a userid found in the /etc/passwd file, the tilde and userid is replaced with user's login directory. If the word can not be found, the command is left unchanged. In all other cases, the shell replaces the tilde with your login directory as specified by the $HOME environment variable.

 


Comments to consult@newton.berkeley.edu
© 1998-2008 UC Regents