1,576
edits
Changes
no edit summary
<li><p>Not all relative pathnames begin with <code>..</code></p></li>
<li><p>When using relative pathname, make sure you know your present working directory.</p>
<source lang="bash"># Change pwd to another directory branch from ipc144 (.. means parent directory: of pwd)cd../ipc144
# copy file sample.c file (location is relative to parent of pwd) # from joe.professordoe's home directory to your current directory:pwd (. means pwd)cp ../joe.professor/uli101doe/sample.c .
</source></li></ol>
= Relative-to-Home Pathnames =
* <code>~jane.somebody</code> expands to <code>/home/jane.somebody</code> but <code>~</code> expands to <code>/home/your_home_dir</code>
$ echo \*
</source>
* To quote a <code>\</code> another another <code>\\</code> is used, this means <code>\\</code>
== ' ' Quotes ==
</source>
== Double Quoting ==
* Commands such as echo can have their arguments quoted using double quotes
* Prevent shell variable substitution
* Stop escape characters interpretation
[[Category:ULI101]]
[[Category:ULI101-2018]]