lshmc - List media contents in the HMC media drive

Ubuntu 22.04 LTS LPAR mode z/VM guest

Use the lshmc command to display the contents of the media in the HMC media drive.

Before you begin: To be able to use this command, you need the hmcdrv module .

lshmc syntax

Read syntax diagramSkip visual syntax diagramlshmc <filepath> -s

Where:

<filepath>
specifies a directory or path to a file to be listed. Path specifications are relative to the root of the file system on the media. You can use the asterisk (*) and question mark (?) as wildcards. If this specification is omitted, the contents of the root directory are listed.
-s or --short
limits the output to regular files in a short listing format. Omits directories, symbolic links, and device nodes and other special files.
-v or --version
displays version information for the command.
-h or --help
displays a short help text, then exits. To view the man page, enter man lshmc.

Examples

  • To list the files in the root directory of the media in the HMC's media drive, issue:
    # lshmc 
    
  • If the hmcdrv kernel module is not loaded, load it before you issue the lshmc command:
    # modprobe hmcdrv
    # lshmc 
  • To list all HTML files in subdirectory www, issue:
    # lshmc /www/*.html