Stm_vehicle.py stm_vehicle.py: command not found

stm_vehicle.py
stm_vehicle.py: command not found

I am getting this error

In which directory are you running this? It will work in ArduCopter (or others as per your requirement). If you want to run it from Tools/autotools, then you must specify the vehicle type e.g. -v ArduCopter

But if your intention is to view/edit it from Tools/autotools, you can either use sudo vi or gedit. In another directory where sim_vehicle does not exist, it will create a new file with this name which is of no use as it will be all blank.

It won’t work with the typo.
Use ‘sim_vehicle.py’.