Changes

Jump to: navigation, search
KEY CONCEPTS
===Pathname Types===
A '''pathname''' is a '''fullyAs previously mentioned, a pathname is a fully-specified location''' of location of a unique filename within a file �file system.The concept of a pathname relates to every operating system including:� Unix, Linux, MS-DOS,  MS-Windows, Apple-Macintosh, etc.�
The concept of Last week, we used a pathname relates from our home directory to every operating system including '''Unix''', '''Linux''', '''MS-DOS''', '''MS-Windows''','''Apple-Macintosh''', etccreate and manipulate directories �and text files. There are different types of pathnames that we can use to access a directory or text file.
'''For Example:'''�<br>/home/userid/uli101/cars.txt<br>('''absolute pathname''')�samples/cars.txt ('''relative pathname''')<br>~/cars.txt ('''relative-to-home pathname''')�
It is important to understand These types of file pathnames since you need can make it more efficient (i.e. less keystrokes for users to '''save or access a file without ambiguity''' because there may be several files by that name in different directoriestype) �when issuing Unix and Linux commands.
For example: Accessing the '''cars.txt''' file - which file to access? It depends on the location of the file
 
<span style="color:blue;font-family:courier;">/home/userid/uli101/cars.txt</span><br>
<span style="color:blue;font-family:courier;">/public/uli101/samples/cars.txt</span><br>
<span style="color:blue;font-family:courier;">/etc/data/cars.txt</span>
13,420
edits

Navigation menu