diskinfo

command module
v0.0.0-...-e6913de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

diskinfo

Introduction

A simple Go CLI used to show a quick and dirty summary of the installed disks in a Linux system. In particular, this is very useful for servers with large disk counts.

Never be confused as to whether /dev/sdb is ata2 or ata3 again.

Usage

To run, simply run ./diskinfo and you'll get a simple summary shown:

> ./diskinfo
+----------+--------+-------------------------+--------------+----------+--------+
|   DISK   | DEVICE |          MODEL          |    SERIAL    |  SPEED   |  SIZE  |
+----------+--------+-------------------------+--------------+----------+--------+
| /dev/sda | ata2   | TOSHIBA_THNSNJ512GDNU_A | X61S10DXXXXX | 6.0 Gbps | 512 GB |
+----------+--------+-------------------------+--------------+----------+--------+

diskinfo also supports a single -o option to control the output. Available outputs are table (default, shown above), simple (more compact and copy-paste friendly output) and csv (outputs CSV format, best combined with tee).

> ./diskinfo -o table
> ./diskinfo -o simple
> ./diskinfo -o csv

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址