What is a pathname? |
|
You can refer to any file in any directory on the system by using its pathname. A pathname is a string of characters that describes what directory the file is in, as well as the name of the file.
The pathname of a file in the current working
directory is just the name of the file by itself. For
example, when you first log in, the current working directory is
your home directory. If you create a file
called foo in that directory, you can refer to it
simply as foo.
Files that are in a different directory than the current working directory can be referred to by three different methods:
|
John Shipman, john@nmt.edu
Last updated: 1995/12/04 19:39:34 UT URL: http://www.nmt.edu/tcc/help/unix/whatpath.html |
|