WwWxQxQ / smartdisk

smartdisk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.Build

cargo build --release
sudo bash build.sh

1. Add Global PATH

in ~/.bashrc or ~/.zshrc add the following line:

#smartctl
SMARTCTL_HOME="/usr/local/bin"
export PATH=$SMARTCTL_HOME:$PATH

and then

source ~/.bashrc

2. Usage

Usage: smartdisk [OPTIONS] --device <DEVICE>

Options:
  -d, --device <DEVICE>  
  -f, --file <FILE>      [default: ./disk_record.md]
  -h, --help             Print help
  -V, --version          Print version

About

smartdisk


Languages

Language:Rust 96.9%Language:Shell 3.1%