The below command works fine on my Ubuntu, it sends back a random cheesy and geeky joke that even I myself sometimes do not get:
curl -s https://official-joke-api.appspot.com/jokes/programming/random | jq '.[0] | .setup, .punchline'
You might need to apt-install jq package as well. Typical output:
Also, there is the Chuck Norris joke command line:
curl -s https://api.chucknorris.io/jokes/random | jq -r '.value'
Leave a Reply