Both sides previous revision Previous revision Next revision | Previous revision |
abstract:farber:app_dev:compute_env [2018-05-23 11:46] – [UNIX shell] anita | abstract:farber:app_dev:compute_env [2021-04-27 16:20] (current) – [Startup and logout scripts] anita |
---|
| |
<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: |
<note tip>Use ''$WORKDIR'' when you refer to your 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 [[abstract:farber: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)@farber ~]$ '' | ''[(it_css:traine)@farber ~]$ '' |
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@farber:/lustre/work/it_css/users/traine'' | ''traine@farber:/home/work/it_css/users/traine'' |
</note> | </note> |
| |