I have created my macro and I am trying to run it. But it says that no such file exists in the path, so am I supposed to save it to the root/macros file? Because I tried that but it says I can not modify that file.
You can specify the path, but to make it simpler, first go (cd) to the folder where you have the macro and then start ROOT from there.