Skip to content

Releases: JakeTrock/gosblk

first release!

03 Nov 07:32
Compare
Choose a tag to compare

Usage of mac lsblk:

  -I string
        Include devices specified by the comma-separated list of names.
  -J    Use JSON output format.
  -ascii
        Use ASCII characters for tree formatting.
  -b    Print the SIZE column in bytes rather than in a human-readable format.
  -bytes
        Print the SIZE column in bytes rather than in a human-readable format.
  -d    Do not print holder devices or replicas.
  -e string
        Exclude the devices specified by the comma-separated list of names.
  -exclude string
        Exclude the devices specified by the comma-separated list of names.
  -f    Output info about filesystems.
  -fs
        Output info about filesystems.
  -h    Display help text and exit.
  -help
        Display help text and exit.
  -i    Use ASCII characters for tree formatting.
  -include string
        Include devices specified by the comma-separated list of names.
  -json
        Use JSON output format.
  -l    Produce output in the form of a list.
  -list
        Produce output in the form of a list.
  -n    Do not print a header line.
  -nodeps
        Do not print holder devices or replicas.
  -noheadings
        Do not print a header line.
  -p    Print full device paths.
  -paths
        Print full device paths.
  -sort string
        Sort by column (name, size, type, identifier)
  -v    Print version
  -x string
        Sort by column (name, size, type, identifier)

mac lsblk v0.1 hacked together by jake.trock.com :^]