Skip to main content

Query This JSON File on Linux

Hands-On Lab

 

Photo of

Training Architect

Length

00:15:00

Difficulty

Beginner

You are working as a system administrator and have been tasked with querying a JSON file using only the CLI (Command Line Interface). You can download the demo file using the following curl command:

curl -O -L https://github.com/linuxacademy/content-intro-to-databases-on-linux/raw/master/demo.json

Once the demo file is downloaded, you will also need to download the jq JSON processor from the following URL: https://stedolan.github.io/jq/

With the demo file and jq processor are both downloaded, you may proceed with querying the file.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.