cargo build --release
sudo bash build.sh
in ~/.bashrc
or ~/.zshrc
add the following line:
#smartctl
SMARTCTL_HOME="/usr/local/bin"
export PATH=$SMARTCTL_HOME:$PATH
and then
source ~/.bashrc
Usage: smartdisk [OPTIONS] --device <DEVICE>
Options:
-d, --device <DEVICE>
-f, --file <FILE> [default: ./disk_record.md]
-h, --help Print help
-V, --version Print version