This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
natrinicle
/
schnippets
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Adding Resparsify and Find Symlink Dest
A couple more useful commands
master
Nate Bohman
5 years ago
parent
60f59d4469
commit
4e7a2b1954
2 changed files
with
7 additions
and
0 deletions
Unified View
Show Diff Stats
+4
-0
find_symlinks_by_destination.sh
+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
Write
Preview
Loading…
Cancel
Save