-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsync-watch
executable file
·21 lines (19 loc) · 1.3 KB
/
sync-watch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
#########################################################################
# Dirty Data Sync Watcher #
# #
# Outputs a tiny, updating display of how many megabytes are queued #
# in memory, waiting to be written to disk. #
# #
# This helps you visualize when it will be safe to unmount a disk #
# or turn off your system. #
# #
# Part of HopeSeekr's BashScripts Collection #
# https://github.com/hopeseekr/BashScripts/ #
# #
# Copyright © 2020 Theodore R. Smith <[email protected]> #
# GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690 #
# #
# License: Creative Commons Attribution v4.0 International #
#########################################################################
watch -d grep -e Dirty: -e Writeback: /proc/meminfo