This computer runs the UNIX operating system. UNIX is a very compact and powerful command language (a language used to give operating systems commands to follow).
Filenames in UNIX include the name and sometimes a period followed by an extension. Note that UNIX is case-sensitive for filenames. For example, the files example.cpp and Example.cpp are two different filenames in UNIX.
In commands '*' is very useful. For example, *.cpp refers to all files which have a .cpp extension, and *.* refers to all files.
Some of the commands that you will need to use are:
man ls - information about the command ls.
man man - information about the command man.
ls - lists all the files.
ls example.cpp - lists if the file example.cpp exists.
ls *.cpp - lists all files with a .cpp extension.
more example.cpp - displays the file example.cpp
lp example.cpp - prints out the file example.cpp on the line printer
mv ex.cpp example.cpp - changes the filename ex.cpp to example.cpp
rm example.cpp - deletes the file example.cpp
rm *.cpp - deletes all files with a .cpp extension. Not a good idea.
rm *.* - deletes all files. Especially not a good idea.
These are the UNIX command line commands to work with directories.
Anytime that you are using your account you are in a working directory. By default the working directory is your home directory.
Some special directory references:
. - current directory
.. - parent directory
~ - home directory
Some of the commands that you will need to use are:
mkdir Project1 - creates a directory called Project1
mk Project1 - does the same thing
rmdir Project1 - deletes the directory called Project1
pwd
cd Project1 - Changes the working directory to the subdirectory Project1
cd .. - Changes the working directory to the parent directory
cd - Changes the working directory to the home directory