{"id":173,"date":"2026-04-19T10:32:07","date_gmt":"2026-04-19T09:32:07","guid":{"rendered":"https:\/\/vpp.dk\/?linux_trick=list-all-environment-variables-sorted"},"modified":"2026-04-19T10:32:07","modified_gmt":"2026-04-19T09:32:07","slug":"list-all-environment-variables-sorted","status":"publish","type":"linux_trick","link":"https:\/\/vpp.dk\/?linux_trick=list-all-environment-variables-sorted","title":{"rendered":"List all environment variables sorted"},"content":{"rendered":"<p>Print every environment variable in alphabetical order \u2014 handy when debugging missing config or checking what a script will see.<\/p>\n","protected":false},"template":"","meta":{"_trick_code":"printenv | sort\n\n# Or just search for a specific one:\nprintenv | grep -i path","_trick_uploader":"envhunter"},"trick_category":[22,20],"class_list":["post-173","linux_trick","type-linux_trick","status-publish","hentry","trick_category-scripting","trick_category-system-info"],"_links":{"self":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick"}],"about":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/types\/linux_trick"}],"wp:attachment":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"trick_category","embeddable":true,"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftrick_category&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}