1
0
mirror of https://github.com/byReqz/stocheck.git synced 2024-11-14 19:53:15 +00:00
stocheck/README.md

43 lines
836 B
Markdown
Raw Normal View History

2021-01-22 21:48:34 +00:00
# stocheck
quick and dirty smart value checker
2021-01-22 22:07:39 +00:00
### features:
- sata/nvme support
- show smart info and self-check results
# usage
Usage: stocheck (options) <br>
Options: <br>
-h/--help -- show help <br>
-u/--update -- update the script <br>
2021-01-23 00:03:20 +00:00
### **running it on a remote machine:**
**running once:**
2021-01-22 23:43:03 +00:00
```bash
ssh root@remote 'bash -s' < stocheck.sh
```
2021-01-23 00:03:20 +00:00
**proper alias:**
```bash
echo "function stocheck_remote { ssh root@"$"1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc
echo "alias stocheck=stocheck_remote" >> ~/.bashrc
```
2021-01-22 22:07:39 +00:00
# installation
1. download the script: <br>
```bash
wget https://git.byreqz.de/byreqz/stocheck/raw/branch/main/stocheck.sh
```
2. run it with <br>
2021-01-22 23:43:49 +00:00
```bash
2021-01-22 22:07:39 +00:00
bash stocheck.sh
2021-01-22 23:43:49 +00:00
```
2021-01-22 22:07:39 +00:00
or <br>
2021-01-22 23:43:49 +00:00
```bash
2021-01-22 22:07:39 +00:00
chmod +x stockheck.sh && ./stocheck.sh
2021-01-22 23:43:49 +00:00
```
2021-01-22 22:07:39 +00:00
3. optionally alias it <br>
2021-01-22 23:43:49 +00:00
```bash
alias stocheck="~/stocheck.sh"
```