Whatbox Logo

Wiki > jq

jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.


  1. Connect to your slot through SSH

  2. mkdir ~/bin

  3. Download the binary

     wget -P ~/bin https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
  4. Make it executable chmod +x ~/bin/jq-linux64

  5. Add an alias so you can call it using jq run alias jq=jq-linux64

  6. (Optional) Add ~/bin to your PATH so that you can run binaries in ~/bin without specifying the path. Ignore this step if you have performed it for a different program.

     echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc

You can now run ~/bin/jq (or jq if the optional step is completed) to use the program.