abstract:farber:app_dev:compute_env

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
abstract:farber:app_dev:compute_env [2018-03-23 19:59] – [Using workgroup and directories] sraskarabstract:farber:app_dev:compute_env [2021-04-27 16:20] (current) – [Startup and logout scripts] anita
Line 1: Line 1:
 ====== Computing Environment ====== ====== Computing Environment ======
 +
 +
 ===== UNIX shell ===== ===== UNIX shell =====
  
-The //UNIX shell// is the interface to the UNIX operating system. The HPC cluster allows use of the enhanced Bourne shell //bash//, the enhanced C shell //tcsh//, and the enhanced Korn shell //zsh//. IT will primarily support bash, the default shell.+The //UNIX shell// is the interface to the UNIX operating system. The HPC cluster allows use of the enhanced Bourne shell //bash//, the enhanced C shell //tcsh//, and the enhanced Korn shell //zsh//. IT will primarily support //bash//, the default shell.
  
 For most Linux systems, the //sh// shell is the //bash// shell and the //csh// shell is the //tcsh// shell. The remainder of this document will use only // bash// commands. For most Linux systems, the //sh// shell is the //bash// shell and the //csh// shell is the //tcsh// shell. The remainder of this document will use only // bash// commands.
 +
 +== ==
 +//The following sections use the wiki's [[:#documentation-conventions|documentation conventions]].//
  
 ===== Environment variables ===== ===== Environment variables =====
Line 34: Line 39:
 <note warning>Spaces are important. Do not put spaces around the equal sign. If the value has spaces, enclose the value in quotes.</note> <note warning>Spaces are important. Do not put spaces around the equal sign. If the value has spaces, enclose the value in quotes.</note>
 <note tip>If you see instructions that refer the ''setenv'' command, replace it with the ''export'' **bash** command.  Make sure you use equal signs, with no spaces.  The ''setenv'' **csh** command uses spaces instead of one equal.</note> <note tip>If you see instructions that refer the ''setenv'' command, replace it with the ''export'' **bash** command.  Make sure you use equal signs, with no spaces.  The ''setenv'' **csh** command uses spaces instead of one equal.</note>
-     +   
-//This section uses the wiki's [[:#documentation-conventions|documentation conventions]].//+
 ==== Startup and logout scripts ==== ==== Startup and logout scripts ====
  
Line 54: Line 58:
  
 <code bash> <code bash>
-    cp /etc/skel/.bash* $HOME+    cp /opt/shared/templates/homedir/.bash* $HOME
 </code> </code>
 <note tip>**Where to put startup commands:** You can put bash commands in either ''~/.bashrc'' or ''~/.bash_profile'' Here are general suggestions: <note tip>**Where to put startup commands:** You can put bash commands in either ''~/.bashrc'' or ''~/.bash_profile'' Here are general suggestions:
Line 84: Line 88:
 <note tip> <note tip>
 The initialization scripts also set the //standard prompt// with your login name and a shortened host name. The initialization scripts also set the //standard prompt// with your login name and a shortened host name.
-For example, if your <<//hostname//>> is ''mills.hpc.udel.edu'' and your <<//login_name//>> is ''traine'', then the //standard prompt// will be+For example, if your <<//hostname//>> is ''farber.hpc.udel.edu'' and your <<//login_name//>> is ''traine'', then the //standard prompt// will be
  
-''[traine@mills ~]$ ''+''[traine@farber ~]$ ''
 </note> </note>
 <note important>Clusters may be configured to have multiple login nodes, with one common name for connecting.  For example, on the Farber cluster, the hostname may be set to ''login000'' or ''login001'', but the standard prompt and window title bar are set to //farber//. </note> <note important>Clusters may be configured to have multiple login nodes, with one common name for connecting.  For example, on the Farber cluster, the hostname may be set to ''login000'' or ''login001'', but the standard prompt and window title bar are set to //farber//. </note>
Line 104: Line 108:
 | ''WORKGROUP''       | ''it_css''                   | Current workgroup name | | ''WORKGROUP''       | ''it_css''                   | Current workgroup name |
  
-<note tip>Use ''$WORKDIR'' when you refer to you group private directory.  This will improve portability. </note>+<note tip>Use ''$WORKDIR'' when you refer to your group private directory.  This will improve portability. </note>
 <note tip> <note tip>
-It is always important to be aware of your current workgroup name.  The standard prompt includes the workgroup name, added to your username and host.  You must have a workgroup name in your prompt to use that cluster group's (//investing-entity//) compute nodes to submit jobs using [[clusters/mills/runapps?s[]=submit&s[]=job#submitting-jobs-qsub|qsub]] or qlogin. An example prompt after the **workgroup** command,+It is always important to be aware of your current workgroup name.  The standard prompt includes the workgroup name, added to your username and host.  You must have a workgroup name in your prompt to use that cluster group's (//investing-entity//) compute nodes to submit jobs using [[:abstract:farber:runjobs:schedule_jobs#batch-jobs-qsub|qsub]] or [[:abstract:farber:runjobs:schedule_jobs#interactive-jobs-qlogin|qlogin]]. An example prompt after the **workgroup** command,
  
-''[(it_css:traine)@mills ~]$ ''+''[(it_css:traine)@farber ~]$ ''
 </note> </note>
  
Line 136: Line 140:
 It is always important to be aware of your current working directory.  The standard prompt ends with the basename of ''PWD'' In these two examples the basename is the same, ''traine'', but the standard bash ''PROMPT_COMMAND'', which is executed every time you change directories, will put the full path of your current working directory in your window title. For example, It is always important to be aware of your current working directory.  The standard prompt ends with the basename of ''PWD'' In these two examples the basename is the same, ''traine'', but the standard bash ''PROMPT_COMMAND'', which is executed every time you change directories, will put the full path of your current working directory in your window title. For example,
  
-''traine@mills:/lustre/work/it_css/users/traine''+''traine@farber:/home/work/it_css/users/traine''
 </note> </note>
  
  • abstract/farber/app_dev/compute_env.1521849543.txt.gz
  • Last modified: 2018-03-23 19:59
  • by sraskar