For each instance and configuration, navigate to your Home directory and create a folder named py_scripts:
![](https://static.packt-cdn.com/products/9781788993357/graphics/assets/71b5bdc9-fabb-4070-9985-89ceab33443f.png)
Create a file named linalg_benchmark.py with the following command and paste the contents:
![](https://static.packt-cdn.com/products/9781788993357/graphics/assets/9aa9878f-ace1-4156-9c40-fb98f19ddb67.png)
After pasting the contents, type :, then type wq!, and Enter to save and quit:
![](https://static.packt-cdn.com/products/9781788993357/graphics/assets/fef3b1d6-8f81-4b71-8f58-b915c9ffb4f7.png)
Now you can run this file with the following command:
![](https://static.packt-cdn.com/products/9781788993357/graphics/assets/aec20b2e-8717-429d-928b-2d3132bc3722.png)
For Anaconda distribution, you will run the script with the following command:
![](https://static.packt-cdn.com/products/9781788993357/graphics/assets/7ded6a60-0e2b-4702-9223-56f6258b6d60.png)