Open main menu

CDOT Wiki β

Changes

Relative-to-home Pathnames
<table align="right"><tr><td>[[Image:relative-to-home-1.png|thumb|right|250px|Directories in red display the path from the current directory location (which is '''xyz100''') to the '''bin''' directory (i.e. the relative pathname: '''../../../bin'''.]]</td><td>[[Image:relative-to-home-2.png|thumb|right|250px|Directories in red display the path from the current directory location (which is '''uli101''') to the '''examples''' directory (i.e. the relative pathname: '''uli101/examples''' or ./uli101/examples]]</td></tr></table>
You can specify a pathname as relative-to-home by using a tilde and slash at the start, e.g. '''~/uli101/notes.html'''
The tilde ~ is replaced by your home directory (typically /home/username) to make the pathname absolute.
13,420
edits