Changes

Jump to: navigation, search
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 home directory of the current user (which is '''userid''') to the '''examples''' directory (i.e. the relative-to-home pathname: '''~/uli101/examples'''.]]</td><td>[[Image:relative-to-home-2.png|thumb|right|250px|Directories in red display the path from another user's home directory location to their '''notes''' directory (i.e. the relative-to-home pathname: '''~jane/uli101/notes''']]</td></tr></table>
You can specify a pathname as relative-to-home by using a tilde �tilde and possibly a slash at the start, e.g. ''beginning of the pathname�The tilde character ~' is replaced by your home directory (typically /home/current-user-id)�You can immediately place a username after the tilde to represent another user’s home directory (for example: ~jane = /uli101home/notes.html'''jane)�
The tilde character '''~'''' is replaced by your home directory (typically '''/home/current-user-id''') You can immediately place a username after the tilde to represent another user’s home directory. For example: '''~jane = /home/jane'''  ''Advantages of using Relative-to-home Pathnames:'' :* Possible shorter pathname  ''Examples:''��<br><span style="color:blue;font-family:courier;">mkdir ~/uli101</span>practice<br>~murray.saul/uli101/tutorials<span style="color:blue;font-family:courier;"br>ls ~janeuli101/assign1</span>
13,420
edits

Navigation menu