NVME-SHOW-HOSTNQN(1)
π NVME-SHOW-HOSTNQN π
okay bestie, welcome to the nvme-show-hostnqn page β part of the NVMe Manual, and honestly? it's a short one, so we're gonna get through it together and you're gonna feel so smart after π«Ά
β¨ NAME β¨
nvme-show-hostnqn β show the host NQN that's configured for the system π
β¨ SYNOPSIS β¨
nvme [<global-options>] show-hostnqn
that's it. that's the whole vibe. no cap πΈ
β¨ DESCRIPTION β¨
So the whole point of this one: it shows the host NQN that's configured for the system. Slay, that's the job. π
But here's the little plot twist you need to know about: if /usr/local/etc/nvme/hostnqn is not present, and systemd application-specific machine IDs are available, then this will show the systemd-generated host NQN for the system. so the systemd girlies get their moment too π§β¨
β¨ OPTIONS β¨
π GLOBAL OPTIONS π
These following options are defined up at the top-level nvme command, and they're available to this subcommand too β they trickle down, main character energy π
--dry-runβ prints the command that would be executed, but doesn't actually execute it. like a rehearsal, but for your terminal π--no-ioctl-probingβ disables probing for 64-bit IOCTL support. no poking around, we're just not doing it π--no-retriesβ disables the retry logic on transient errors. one shot, one opportunity π-o <fmt>,--output-format=<fmt>β sets the reporting format tonormal,tabular,json, orbinary. only one output format at a time, bestie β you can't collect them all π--output-format-version=<version>β picks the output format version. version1uses the original field naming, while version2(the default, and honestly the icon) gives you more consistent and script-friendly field names. any other version? rejected. no discussion π₯--quietβ suppresses informational messages. errors are still reported, and heads up:--quietcancels any--verbosefor the library log level. it's giving "silence, but make it honest" π€«--set-options=<key=value>[,<key=value>...]β sets libnvme library options for this invocation. supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir. mix and match, comma-separated, go off β--timeout=<ms>β sets the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff) β literally forever, no clock-watching π-v,--verboseβ increases the level of detail in the output. you can specify it multiple times to crank the verbosity even further. more flag = more lore π
lowkey important note: these options can also be set as machine-wide defaults in nvme-cli.conf(5). and a command-line flag always overrides the file. always. periodt π
β¨ EXAMPLES β¨
nvme show-hostnqn
that's the example. run it, get your host NQN, live your life π¦
β¨ NVME β¨
Part of the nvme-user suite. yeah, she's in the family π
and that's the page!! π fr fr you now understand nvme-show-hostnqn better than most people. this little slice of the NVMe manual is dated 10/30/2026, so go forth, be iconic, and show that host NQN bestie πβ¨π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms