Basic Unix
Basic Unix
We will be working on the Unix operating system. Here are some basic
commands (and hints) to help you get started.
When you login to your account you are located in your home directory. You can
always specify your home directory by the symbol ~. All files and directories
within Unix are uniquely defined by their path. Imagine the following structure
of files and directories:
~
ada_files misc
test.a
Suppose we are interested in using an Ada program that is stored in a file test.a
located in directory ada_files. The full pathname which uniquely describes test.a
from the home directory is: ~/ada_files/test.a. If we are already located in ~, we
could specify the file as: ada_files/test.a. If we are located in ada_files, we need
only specify test.a.
For the commands listed below, the <dir> and <file> arguments are expected to
be pathnames describing directories or files, respectively.