next up previous contents
Next: Creating files: Using the Up: . Previous: On-line help (man)   Contents

Files and the File system

A file is a container for your data. You have the power to create, display, modify, execute (run), and delete your personal files. This section will explain how to perform all of the above commands. A note on file names in UNIX: file names do not have to have any kind of extension such as one finds in VMS to indicate the ``type'' of file. For example, in VMS executables usually end with ``.exe'', data files with ``.dat'' etc. Under UNIX, you can call them anything you want. A file called ``test'' could be an executable program, a file containing data, a plain text file, a directory, or anything else. You can specify extensions if you wish, to clarify the contents of a file. This is customary for some situations, but is not a general rule. However there are other ways of telling, which will be discussed under the information for the ls command, below, and the file command. See also the section on ``File conventions'' below.

A word of warning: UNIX has no concept of ``versions'' of a file!!! If you use the same filename twice for different things, only the latest copy will be kept. The only exception to this rule is that some editors, such as emacs and vi, will deliberately keep one previous version of a file. In order to accomplish this, they must put extra characters in the file name. This is not something that most UNIX utilities (such as compilers, programs, etc.) will do, so be careful when using potentially destructive commands. If you want to keep multiple versions of a file, you will have to give each one a slightly different name.




next up previous contents
Next: Creating files: Using the Up: . Previous: On-line help (man)   Contents
h.stilmack@jach.hawaii.edu