Linux

Linux terminal commands
Linux cheat sheet Complimetary commands

Interactive MATLAB session
You can use the MATLAB on perm 3 by connecting to perm3 (NOT the docker) and enter

matlab

Running MATLAB without display
The following command will run script.m and divert the output in output.txt nohup matlab -nosplash -nodisplay -nodesktop -r "run /path/to/script.m ;exit;" &>output.txt &

kill processes by specification
ps aux | grep -ie  | awk '{system("kill -9 " $2)}'

Adding a new user
The following sequence of commands will add a user and give hime docker permission level sudo useradd -m -s /bin/bash -g users -G docker $USER passwd $USER