13,420
edits
Changes
→Pathname Types
As previously mentioned, a '''pathname is a fully-specified location of a unique filename''' within a file system.<br>The concept of a pathname relates to every operating system including: ''Unix, Linux, MS-DOS, MS-Windows, Apple-Macintosh,'' etc.
Last week, we used a pathname from our home directory to create and manipulate directories and text files. <br>There are different types of pathnames that we can use to access a directory or text file.
'''For Example:'''<br><span style="font-family:courier">/home/userid/uli101/cars.txt</span> ('''absolute pathname''')<br><span style="font-family:courier">samples/cars.txt</span> ('''relative pathname''')<br><span style="font-family:courier">~/cars.txt</span> ('''relative-to-home pathname''')