The Environment
HPC2N environmentYour home-directory is placed on an (Andrew File System) AFS. This file system is backed up regularly. AFS is a distributed networked file system, which was developed for security and scalability. Most differences between AFS and traditional networked file systems (like NFS) are transparant for the user. Some important differences are:
Note that since ticket-forwarding to batch jobs does not work, the only AFS-access possible from batch jobs are to read files from your Public-directory which is world-wide readable (yes, the entire world) and from the parallel file system. Use the parallel file system for data management in conjunction with batch jobs. See File systems and Storage for some more information about AFS and the parallel file system. Environment variablesThere are many environment variables. Some will be set automatically at login and some which you can change if needed. Many of the environment variables will be related to paths and storage locations, but there are also some which are set for specific applications (like compilers). These environment variables willl be set when you load the 'module' for the application in question. (Read more about modules in the section about them.) You should use environment variables instead of actual paths whenever possible to avoid problems if the specific paths to any of these change. Some of the environment variables you should have are:
You can find more about environment variables here. All environment variables begin with the dollar sign ($) and are all uppercase. They may be used on the command line or in any scripts in place of and in combination with hard-coded values: $ ls $HOME ... You may find the value of any environment variable by using the echo command: $ echo $SHELL /bin/bash You may list the values of all environment variables using the env command: $ env USER=myusername HOME=/home/b/myusername SHELL=/bin/bash ... You may create or overwrite an environment variable using either export or setenv, depending on your shell: (for bash and sh) $ export VARIABLE=value (for tcsh and csh) % setenv VARIABLE value |



