Browse Source

Adding Resparsify and Find Symlink Dest

A couple more useful commands
master
Nate Bohman 5 years ago
parent
commit
4e7a2b1954
2 changed files with 7 additions and 0 deletions
  1. +4
    -0
      find_symlinks_by_destination.sh
  2. +3
    -0
      resparsify_file.sh

+ 4
- 0
find_symlinks_by_destination.sh View File

#!/usr/bin/env bash

# Find the symlink in /dev/disk/by-id that points to /dev/sdd
find -L /dev/disk/by-id -xtype l -samefile /dev/sdd

+ 3
- 0
resparsify_file.sh View File

#!/usr/bin/env bash

fallocate --dig-holes /path/to/file

Loading…
Cancel
Save