Using a tilde character instead of a full pathname

Using a tilde character instead of a full pathname

Using the C, Korn, TC or BASH shell enables you to substitute the ~ (tilde) character in place of the full pathname to your own or another user's home directory.

For example, the command

   cd ~helper

changes your working directory to the home directory of the user "helper".

This is very useful if you have access permission to a directory in another users home directory but don't know the full pathname to it.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.