OSMIUM-SHOW(1)
π osmium-show β bestie, let's peek inside that OSM file π
okay so like. this is the osmium-show manual page, from the osmium crew (version 1.19.1, iconic behavior), and it's basically the "hold my hand and let me read this file out loud to you" command. sit down, get comfy, we're doing this together π«Ά
πΈ NAME πΈ
osmium-show β show OSM file. that's it. that's the vibe. it shows you an OSM file β¨
π SYNOPSIS π
osmium show [OPTIONS] OSM-FILE
π¦ DESCRIPTION π¦
So what it does is show you the contents of OSM-FILE on STDOUT, and usually it pipes that into a pager so you can scroll through it like a little gremlin reading a novel. π
The output format? You've got options, bestie:
- the
--output-format/-foption sets it directly, - or use the shortcuts:
-dfor debug format with colors (yes, colors, we love a glow-up),-ofor OPL, or-xfor XML, - or just set the
OSMIUM_SHOW_FORMATenvironment variable and let the environment carry you. π
Now, the pager. You can pick it with the OSMIUM_PAGER env var or the plain old PAGER env var. If neither one is set, the default is less β unless you pass --no-pager, in which case, no pager, no problem. And if you set those pager variables to an empty value or literally to cat, then no pager is used either. Oh and heads up: on Windows there is no pager support at all. none. zero. sorry bestie π
Also super important: this command reads its input file only once, which means it can read from STDIN. stream queen behavior. π
β¨ OPTIONS β¨
-f,--output-format=FORMATβ sets the format of the output file. use it when the format can't be autodetected from the output file name. for the details, go checkosmium-file-formats(5)or the libosmium manual. π--no-pagerβ disable the pager. simple as that.-d,--format-debugβ same as-f debug,color=true. yes, colored debug output. slay.-o,--format-oplβ same as-f opl.-x,--format-xmlβ same as-f xml.-t,--object-type=TYPEβ read only objects of the given type (node,way,relation,changeset). by default all types are read. and you can hand this option over multiple times if you want more than one type, no cap.
π COMMON OPTIONS π
-h,--helpβ show usage help. when in doubt, ask for help, that's growth π§
π INPUT OPTIONS π
-F,--input-format=FORMATβ the format of the input file(s). use it when the format can't be autodetected from the file name(s). warning tho: this sets the format for all input files, there is no way to set the format for some input files only. seeosmium-file-formats(5)or the libosmium manual for the details. π
π DIAGNOSTICS π
osmium show exits with exit code:
0β if everything went alright (periodt, we love a zero),1β if there was an error processing the data, or2β if there was a problem with the command line arguments.
π MEMORY USAGE π
osmium show does all its work on the fly and doesn't keep much data in main memory. low maintenance, high performance, that's the energy. β¨
π₯ EXAMPLES π₯
Show an OSM file using the default pager and default format:
osmium show norway.osm.pbf
Use more as a pager and only show relations:
OSMIUM_PAGER=more osmium show -t r norway.osm.pbf
Show using XML format:
osmium show -x norway.osm.pbf
π SEE ALSO π
osmium(1),osmium-cat(1),osmium-file-formats(5)- Osmium website
π COPYRIGHT π
Copyright (C) 2013-2026 Jochen Topf <jochen@topf.org>.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (fr fr, no warranty, read the license bestie π )
π«Ά CONTACT π«Ά
If you have any questions or want to report a bug, please go to <https://osmcode.org/contact.html>. they're nice, they want to hear from you.
π AUTHORS π
Jochen Topf <jochen@topf.org>. legend behavior, honestly.
and that's the whole page, bestie!! π this was osmium-show from osmium 1.19.1 β go forth, page through your OSM files, and remember: no pager on Windows, sobs. bye!! ππβ¨
π¦ where this page comes from
- fedora 44: osmium-tool 1.19.1-1.fc44 Β· GPL-3.0-only
- nixos 26.05: osmium-tool 1.19.1
- nixpkgs unstable: osmium-tool 1.19.1
- ubuntu stonking: osmium-tool 1.19.1-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms