I only want to know what one setting says in a zipped backup. Unpacking the whole archive for that leaves a folder to clean up afterwards.
First see what’s in there, with the exact paths:
unzip -l site.zip
Then send one entry straight to the screen:
unzip -p site.zip site/conf/app.ini
-p writes the file contents to standard output and nothing else, so it pipes cleanly into other tools:
unzip -p site.zip site/conf/app.ini | grep key
When you do want it on disk, name what you need and pick a target folder with -d:
unzip site.zip 'site/conf/*' -d restored
Only that part of the archive is written, with its folder structure under restored. Quote the pattern, so that unzip receives the asterisk and your shell leaves it alone.
Names must match what -l showed, including case and any leading folder, or you get a “filename not matched” warning. Don’t send a binary entry to the terminal, since it can leave the screen garbled; redirect it to a file instead. And plenty of minimal servers and containers don’t ship unzip at all, so you may need to install it first.
Further reading: unzip man page