Use this file to discover all available pages before exploring further.
The HPCC clusters run Linux. If you’ve never used a Linux shell before, this page covers the commands you’ll use every day. If you’re already comfortable with the command line, skip ahead to Software & modules or Job submission.
Owner can read/write/execute; group/others can read/execute.
chmod 600 file
Owner can read/write; nobody else can touch it. Use for private keys.
chmod +x script.sh
Add execute permission for everyone.
chown user:group file
Change owner (usually needs sudo).
SLURM scripts must be readable by the scheduler but don’t have to be executable. sbatch handles that. If you call them directly (./script.sh), you do need chmod +x.
command > output.txt # write stdout to a file (overwrites)command >> output.txt # append stdout to a filecommand 2> errors.txt # write stderr to a filecommand > out.txt 2>&1 # write both stdout and stderr to one filecommand1 | command2 # pipe stdout of command1 into command2
df -h ~ # how full your home filesystem isdf -h /scratch/$USER # how full scratch isdu -sh ~/mydir # how big a specific directory isdu -sh ~/* # sorted breakdown of home contents
ps aux | grep $USER # see your running processestop # interactive process monitor (press q to quit)htop # friendlier version of top (may need module load)kill <PID> # terminate a process by IDkill -9 <PID> # force-kill
Do not run compute jobs on the login (head) node. Long-running processes found there will be killed and the account may be suspended. Use sbatch for batch jobs or srun --pty for interactive compute sessions.