#metadata

16 solutions

Copy files with metadata preserved using cp -p and -a
macOSmetadatatimestampscp

A plain cp gives every copy a fresh timestamp and the invoking user's permissions; -p and -a are the forgotten flags that keep the originals faithful.

Low risk ✓ 2026-09-17
Read Explorer's Extended File Properties via the Shell COM Object
Windowsmetadatacompowershell

The forgotten Shell.Application GetDetailsOf trick lists every property Explorer shows in file Properties > Details, from the command line.

Low risk ✓ 2026-09-17
Show file creation and modification dates with Get-Item
WindowsmetadataFilespowershell

The three NTFS timestamps and how to read them all in one line of PowerShell.

Low risk ✓ 2026-09-17
Fix Photo Timestamps in Bulk with PowerShell
Windowsmetadataphotospowershell

Shift LastWriteTime/CreationTime on a whole folder of photos by any offset with DateTime arithmetic.

Low risk ✓ 2026-09-17
Change a file's modified date in PowerShell
WindowsmetadataFilespowershell

Timestamps are writable properties — set LastWriteTime or CreationTime on (Get-Item file) directly.

Medium risk ✓ 2026-09-17
Get a Video's Duration and Resolution with mdls
macOSvideometadatamdls

Read length, pixel dimensions, and codecs of any video file from Spotlight metadata.

Low risk ✓ 2026-09-18
View and Edit Photo Metadata with exiftool
Linuxmetadataexifprivacy

Read every metadata tag inside a photo, then delete sensitive fields like GPS coordinates before you share the file.

Medium risk ✓ 2026-09-17
Edit Video Title and Author Metadata with ffmpeg
Windowsmetadatamediaffmpeg

Fix a video's title, artist and comment tags in seconds by remuxing with -metadata and -c copy — no re-encoding.

Low risk ✓ 2026-09-19
Query Spotlight's Raw Syntax with mdfind
macOSmetadatasearchmdfind

Use kMDItem attributes to search file metadata the Spotlight UI can't express, faster than find ever will.

Low risk ✓ 2026-09-17
Apply Finder Tags to Files from the Terminal
macOSmetadataFinderxattr

Write the `com.apple.metadata:_kMDItemUserTags` extended attribute used by Finder labels.

Medium risk ✓ 2026-09-18
Read Image Metadata with sips -g
macOSmetadataimagessips

Query pixel size, color space, DPI, and format of any image from Terminal — no Preview needed.

Low risk ✓ 2026-09-17
Delete a single extended attribute with xattr -d
macOSmetadatacom.apple.metadataxattr

Instead of the better-known xattr -c (clear everything), the -d flag surgically removes one named attribute such as com.apple.metadata:kMDItemWhereFroms, the record of where a downloaded file came from.

Medium risk ✓ 2026-09-17