Labs-json-path-5/ comprehension problem

Hello guys, I’m complete beginner with json path and i’m not understanding how to solve the first question of Labs Json Path.

What do you mean by “write the whole command into a file named answer1.sh in the /root directory.”

1 - where can i find the file answer1.sh?
2 - do i need to create it?
3 - if i cd /root i only find .json files.

what i’m i supposed to do here?

Thank you for helping

You need to create it in an editor and write the jsonpath command in the editor, then save it

vi /root/answer1.sh

Make sure you can use vi editor

1 Like

Appreciated it! I managed to go thro and end the labs successfuly! Cheers, Alistair!