Merge branch 'master' into vhs

This commit is contained in:
2024-08-13 19:05:17 +02:00
7 changed files with 168 additions and 14 deletions

19
system/deduplicate.md Normal file
View File

@@ -0,0 +1,19 @@
---
title: "deduplicate"
tags: [ "system", "deduplicate", "duplicates", "maintenance" ]
---
`rdfind`: find duplicate files, then delete them, or turn them into links.
Ask if a directory has duplicates (`rdfind` will not delete anything):
```bash
rdfind $dir
$EDITOR results.txt
```
Replace the duplicated files with [hard links](../basics/hard_links.md).
```bash
rdfind -makehardlinks true $dir
```

View File

@@ -1,38 +0,0 @@
---
title: "exiftool"
tags: [ "Documentation", "Metadata" ]
---
Find metadata.
```bash
exiftool image.jpg
```
Find info on all images in current directory.
```bash
exiftool -ext .png .
```
You can make this recurring with the -r switch.
And overwrite all metadata:
```bash
exiftool -all= -overwrite_original -ext jpg .
```
Or just GPS data:
```bash
exiftool -gps:all= *.jpg
```
You can also use the imagemagick tool:
```bash
identify -verbose
```