I am working with a remote CentOS machine. I don't have graphical access, and I am just using a terminal. On the remote machine, I have a MySQL database with a table. I execute the command SELECT * FROM MY_TABLE LIMIT 10
to get the first 10 entries.
Now, I'd like to save this result in a JSON file on the machine. Eventually, I will do this for the whole table, not just 10 elements. I followed this tutorial, but it doesn't actually create a JSON file on the disk. How do I do this?