Shell is a program that provides a traditional Unix-like command line user interface (CLI). It executes commands read from the standard input device (keyboard) or from a file, create files, and more using the system kernel.
HPC provides BASH (Bourne-Again SHell) shell environment by default
See the available SHELL options
cat /etc/shells
output:
/bin/sh
/bin/bash
/bin/dash
/bin/ksh
/bin/tcsh
/bin/csh
Interactive Job:
The shell be changed to tcsh from bash
srun --pty /bin/tcsh # for tcsh shell
You will be assigned a compute node with tcsh shell.
Test the current shell
echo $0
output:
/bin/tcsh
Batch Job:
In the job script, the first line becomes:
#!/bin/tcsh # for tcsh shell
If you need to change your shell from Bash to something else permanently, please contact us at hpc-supportATcase.edu.