LSHMC(8)
πΏ lshmc(8) β okay bestie, let's peek inside that HMC DVD drive β¨
so this is a page from the System Manager's Manual, and it's all about lshmc β yes, lowercase, yes, it's giving "ls but make it mainframe" π
β¨ NAME β¨
lshmc β list HMC drive DVD contents π
π¦ SYNOPSIS π¦
lshmc [OPTIONS] [FILE]
π DESCRIPTION π
okay so picture this: there's a DVD sitting in the DVD drive of your Hardware Management Console (HMC), and you wanna know what's on it. that's literally the whole gig. lshmc lists the files on that DVD, no cap π«Ά
by default the command lists all files in the root directory of the DVD. simple. iconic.
but wait, there's more β you can pass FILE to list a different set of files. and FILE can specify the path, relative to the DVD root directory, for a directory and file, and it can contain the * and ? wildcard characters πΈ so yeah, globbing is very much invited to the party.
π OPTIONS π
-h,--helpβ prints the help text, then dips out. exit stage left π-v,--versionβ prints version info, then exits. short and sweet β¨-s,--shortβ prints only regular files β no directories, no symbolic links, no special files β in a short listing format. it's the "just the essentials" vibe check π₯
π EXAMPLES π
want to list the files in an HMC drive DVD root directory? say less:
# lshmc
and if the hmcdrv kernel module wasn't loaded in advance (oops π), do this first:
# modprobe hmcdrv
# lshmc
want all the HTML files in the subdirectory www? obsessed, here you go:
# lshmc /www/*.html
π©Ί DIAGNOSTICS π©Ί
okay so here's the part where you gotta pay attention, bestie, because lshmc needs access to the device node /dev/hmcdrv π
that node gets created automatically when the hmcdrv kernel module is loaded (peep the Linux kernel configuration option CONFIG_HMC_DRV for the deets).
and the user process running the lshmc command must have sufficient privileges to read from and write to the node /dev/hmcdrv β yes, read and write, both, no shortcuts. if it doesn't, use the commands chown(1), chgrp(1) and/or chmod(1) on the node /dev/hmcdrv to make that condition happen. permission glow-up, periodt π«
ngl, if you're getting weird errors, this is the first thing to check β are you allowed to touch /dev/hmcdrv? π§
π SEE ALSO π
ls(1), chown(1), chgrp(1), chmod(1) and Linux on System z: Device Drivers, Features and Commands π
k bye, that's the whole page!! this lil masterpiece comes to you courtesy of s390-tools, dated Mar 2015 β vintage but still slaying πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools-hmcdrvfs 2.44.1-160000.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms