The home directory is indicated by the tilde character (~), and additionally by the environment variable, $HOME. In all CSC environments, the home directory is always the same, which means that the home directory and its subdirectories are accessible from all machines. Backup copies are regularly taken of the home directories’ contents.
In the example below, the home directory has subdirectories src, where source code programs are stored, and bin/$ARCH for executable programs (binaries).
cd ~/bin/$ARCH
ln -s $HOME/src/test.f .
make test
In this example, the execution proceeds as follows:
- go to the home directory’s
subdirectory bin/$ARCH
- create a link from the source code program to the current directory. The program is in $HOME/src, and is named test.f.
- the source code becomes executable with command make test.