diff --git a/docs.it4i/software/numerical-languages/octave.md b/docs.it4i/software/numerical-languages/octave.md
index 8564bd030bd6a412fd20500fc7eda8cbdb2df623..c82402afaaec6654e43c009319f1d9fea5555933 100644
--- a/docs.it4i/software/numerical-languages/octave.md
+++ b/docs.it4i/software/numerical-languages/octave.md
@@ -39,7 +39,7 @@ mkdir -p "$DIR"
 cd "$DIR" || exit
 
 # copy input file to scratch
-cp $PBS_O_WORKDIR/octcode.m .
+cp $SLURM_SUBMIT_DIR/octcode.m .
 
 # load octave module
 ml  Octave/6.3.0-intel-2020b-without-X11
@@ -54,7 +54,7 @@ cp output.out $SLURM_SUBMIT_DIR/.
 exit
 ```
 
-This script may be submitted directly to the PBS workload manager via the `salloc` command. The inputs are in the octcode.m file, outputs in the output.out file. See the single node jobscript example in the [Job execution section][1].
+This script may be submitted directly to Slurm via the `salloc` command. The inputs are in the octcode.m file, outputs in the output.out file. See the single node jobscript example in the [Job execution section][1].
 
 The Octave c compiler `mkoctfile` calls the GNU GCC 6.3.0 for compiling native C code. This is very useful for running native C subroutines in Octave environment.