Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [file-metadata]

Questions about exacting or editing the metadata (creation-date, modified, author etc.) of a file.

Filter by
Sorted by
Tagged with
1 vote
1 answer
58 views

EXIF-based CLI renaming/querying tool for video/mp4?

I currently use exiv2 0.28.2 tool to accomplish the same task on my JPEG/TIFF/Raw picture files from the command line. It works really great. Unfortunately it doesn't work reliably on video/mp4 media ...
EnzoR's user avatar
  • 953
-3 votes
2 answers
61 views

Explain to a beginner the meaning of -mtime in simple human language

Of course, I read the meager lines from the manual. I'm still interested in the specifics. For example, the stat / some_files command print this: access 2024 (now) modified 2022 changeded 2023 ...
alex099's user avatar
  • 17
3 votes
1 answer
110 views

is stat(2) read-after-write consistent with write(2)?

man 2 write states: POSIX requires that a read(2) that can be proved to occur after a write() has returned will return the new data. Note that not all filesystems are POSIX conforming. In Linux, is ...
Shivaram Lingamneni's user avatar
0 votes
0 answers
172 views

macOS Terminal: How do I edit an MP3 file's metadata after renaming?

I have a script using variables already renaming files to the following format: (track#) - (title) - (artist) - (date).mp3 #! /bin/zsh - set -o extendedglob pattern='(#b)*_ \((<0-999>)\)(* )—( *...
Allex Valentin's user avatar
0 votes
1 answer
416 views

Imagemagick, how to print date the photo was taken on the image

Imagemagick 6.9.11-60 on Debian. How to print date & time the photo was taken on the image? (on existing images). I have set this option in camera settings, but it only applies to new photos. The ...
minto's user avatar
  • 543
0 votes
1 answer
149 views

Bulk convert from PNG/TIFF to JPG with minimal loss in quality

I need to upload my photos to Shutterfly, but they don't seem to support EXIF data on PNG/BMP images. I need to thus convert to JPG for some prints, but I want to lose as little information as ...
olivarb's user avatar
  • 103
0 votes
1 answer
275 views

How to preserve file creation date when overwriting files?

When I'm overwriting one file with another one, not only it's modification time updates, but also birth time, which is unwanted. I want to make Dolphin overwrite files that way, so target's birth time ...
Velent's user avatar
  • 39
1 vote
1 answer
93 views

Convert directory with opus files to CSV or similar?

I have a folder with opus sound files. I would like to convert that folder listing to something I can use in a spreadsheet. I want the result to contain something like file name, length of the sound ...
d-b's user avatar
  • 1,947
5 votes
2 answers
375 views

evince opens pdf in "presentation mode"

when opening a particular pdf file, evince decides to open it in "presentation mode". I see in the man page that evince has -s option to open in presentation mode, but I did not invoke it. I ...
Martin Vegter's user avatar
7 votes
2 answers
1k views

How to automatically set the modification (or creation) time of a Quicktime video file based on its meta data?

In a shell, how to automatically set the modification (or creation) date and time of a Quicktime video file based on the metadata in the file with a single command (or a single command line)? For JPG ...
user avatar
0 votes
1 answer
81 views

Empty folders without changing folder's Last Modified Date

I wish to delete the contents of around 600 folders on my Linux Mint PC but I want to retain the Last Modified Date of the top-most folder as it existed before deleting the files. This would be ...
Mister Chuff's user avatar
0 votes
1 answer
570 views

How do I list the meta-data in a font file?

I have some font file (specifically, a TrueType, .tff, file) which I want to examine. I can run: file myfont.ttf and get something like: TrueType Font data, 15 tables, 1st "OS/2", 24 names, ...
einpoklum's user avatar
  • 9,662
0 votes
5 answers
3k views

Get list of all files and directories with their permission and owners

I need to generate a list of all files and directories with their permission and owner e.g. -rw-rw-r-- black www-data foo/ -rw-r--r-- black www-data foo/foo.txt -rw-rw-r-- black www-...
Black's user avatar
  • 2,098
0 votes
1 answer
81 views

Modification date fields are not up to date in Nemo

I have a big folder containing several folders. When I open the big folder in Nemo, I noticed that the modification date of several of the subfolders was not up to date, even if files they contain ...
Karlo's user avatar
  • 125
-4 votes
1 answer
85 views

Why don't any Linux distros have a built-in ability to edit media metadata? [closed]

In Windows you can simply right-click a media file and edit its metadata - no additional software needed. Why is this ability absent in Linux? Is there some inherent technical limitation in Linux that ...
001121100's user avatar
0 votes
1 answer
457 views

Add “album_artist” tag to an opus file

I find the opusenc command (from the opus-tools package in Debian) to edit Opus files metadata. But, according to his man’s synopsis (and other sections in the man) it doesn’t provide a way to edit ...
fauve's user avatar
  • 1,290
2 votes
0 answers
805 views

add/edit custom metadata fields to video files without remuxing?

TL;DR - Looking for a way to edit/add CUSTOM metadata fields to video files without remuxing. I have some media files that I add custom metadata fields to (mostly mkv files downloaded with yt-dlp but ...
zpangwin's user avatar
  • 921
0 votes
1 answer
506 views

`cat` affects last `Access` time but not last `Change` time

On my Ubuntu system, I've created a new file prueba.txt using touch prueba.txt. When I show its file statistics using stat prueba.txt, the output is as follows: File: prueba.txt Size: 0 ...
Franklin Pezzuti Dyer's user avatar
4 votes
1 answer
3k views

Copy a file and preserve its creation date

I need to copy files and preserve all their metadata, including creation date. I found ways to use rsync options to preserve modification date, but I also need the creation date to be the same, and ...
QDelage's user avatar
  • 41
0 votes
1 answer
960 views

How to change the modification date (The Metadata) of multiple files?

I have a gallery folder with multiple images and videos, some of them has their modification date correct, and some of them has the month wrong. I want to make a script that will change all the files ...
userbash654's user avatar
5 votes
2 answers
2k views

Add image (cover art) to Opus (ogg) audio file using ffmpeg

Question I have 2 files: audio.opus (extension also possible: .opus.ogg), cover.jpg. How can I use ffmpeg to put cover.jpg as an embedded "cover" image into audio.opus? Constraints I don'...
Totor's user avatar
  • 20.3k
1 vote
2 answers
724 views

Is there a way to add a "description" field / meta-data that could viewed in ls output (or an alternative to ls)?

I have been using unix systems the majority of my life. I often find myself teaching others about them. I get a lot of questions like "what is the /etc folder for?" from students, and ...
BitWrecker's user avatar
0 votes
0 answers
833 views

Recovering a filesystem with a large amount of inode checksum errors - ext4 64 bit on debian 11

The situation is as follows: I have a (very old) filesystem - it was created in 2006. It started off as ext2, got migrated to ext3, then to ext4, then to ext4 with 64bit. I recently enabled ...
lfabio's user avatar
  • 131
0 votes
1 answer
305 views

How to find out the extra meta data size written by process in linux?

I am currently doing a comparison of fsync vs fdatasync in linux, to see how much more data is written to the disk in fsync. I have tried using iotops and checked /proc//io file to check if it ...
Anoop Kulkarni's user avatar
0 votes
1 answer
136 views

Script for Exporting File Metadata to CSV?

DISCLAIMER: I am not a developer and don't have much knowledge of coding; however, what I want to do seems simple enough. I use Pro Tools and want to run a terminal script in Mac OS to be able to scan/...
zjohnson5's user avatar
2 votes
1 answer
651 views

Indexing files' metadata

Is there a tool that allows to index (search) files based on their metadata on linux? I've search a bit and found (here) that there are several tools that allow file indexing on linux: Recoll mlocate ...
cglacet's user avatar
  • 121
2 votes
0 answers
255 views

File Creation Date Inconsistent Between Windows and Linux

I need to get the creation date for some files on a network share. When accessing the file on Windows it shows the correct date. When I switch to Linux and run the stat command on the same file it is ...
Caleb's user avatar
  • 21
1 vote
1 answer
834 views

Set the system attribute on files exported with Samba

I have a Linux server that exports Samba shared folders to a Windows client. From a Linux shell, I need to set the system attribute. On Windows, I would run attrib +s folder How can I do this on the ...
Pol Hallen's user avatar
  • 2,187
2 votes
3 answers
2k views

Backup and restore timestamps of files/directories?

We need to backup the a/c/mtime-stamps of files and directories, and have the ability to restore them if necessary. An example command to back up could be: $ timestamp backup --all-stamps --incl-dir-...
leetbacoon's user avatar
0 votes
1 answer
104 views

BTRFS: List the Crc's of a file's blocks

How can I output the Crc's of a file's blocks? I made a copy of a file using reflink, and I want verify if the original and copied contents are still the same. My intent is to compare the Crc's on ...
Rucent88's user avatar
  • 1,880
0 votes
1 answer
402 views

Cannot disable metadata_csum from buildroot configuration

I'm trying to boot STM32MP157A-DK1 with a Buildroot image that I made but I got this error and I cannot disable the metadata_cesum from the Buildroot configuration. I tried ...
ELmehdi's user avatar
  • 11
1 vote
1 answer
268 views

Filesystem with "bubbling" directory size

This is just my comment from How to cache or otherwise speed up `du` summaries? formulated as a question of its own: Are there any extended discussions about creating a filesystem in which the total ...
smheidrich's user avatar
0 votes
1 answer
263 views

How to set modified file's metadata to equal the created_on value of recovered images?

I recovered images from an android LOST.DIR folder. The data recovered successfully, now I'd like to set the modified timestamp of the file to be equal to the created on value of the binary data. I'm ...
noam steiner's user avatar
0 votes
2 answers
1k views

Extract jpg property 'keyword' from terminal

Using Ubuntu 20.04, I can right-click on a jpg and select 'properties'. A window will open containing the tab 'image'. In this tab, there is a section called 'Keywords', the content of which I would ...
hyhno01's user avatar
  • 67
3 votes
1 answer
1k views

Question marks in ls metadata output?

I was monitoring a directory containing downloads from Google Chrome with ls -la and got this in the output: -????????? ? ? ? ? ? 'Unconfirmed 784300.crdownload' I've never ...
Colin 't Hart's user avatar
1 vote
1 answer
862 views

Since when do Unix systems support birth/creation time (btime/crtime) for files and directories?

Does anyone know when Unix supports birth/creation time stamps for files and directories? If possible also when first file manager (GUI) displays it by default for users. For comparison with Windows, ...
Nick2dna's user avatar
1 vote
0 answers
150 views

tar / pack `a-r` "unreadable" files

If there are files unreadable even to the owner (chmod a-r), tar and other tools will throw errors when creating an archive. However, these files could be updated with chmod u+r before archiving, and ...
usretc's user avatar
  • 658
1 vote
2 answers
547 views

pdftk does not update PageLabel metadata

I realised that pdftk does not update the PageLabel metadata, when using update_data_utf8. I've got a pdf file (let's call it file.pdf), which contains the metadata PageLabelBegin PageLabelNewIndex: 1 ...
red_trumpet's user avatar
2 votes
1 answer
451 views

Is it possible to search for a string and replace it with another string in the title tag of multiple mp3 files?

I would like to search for "ytversion", replace it with "mqversion" in the title tag of multiple mp3 files. I would like this process not edit/delete any other parts of the ...
henry's user avatar
  • 914
0 votes
2 answers
145 views

ID3tag - Script for extracting metadata from filename

I have directory of recording with foo - bar-202009.opus unix - tilde-2020se.opus stack - exchange-29328f.opus I trying to set meta from file name for foo - bar.202009.opus (there are some ...
Hisacro's user avatar
18 votes
4 answers
25k views

Removing metadata from a PDF

What commands must I issue irreversibly to remove all metadata from foo.pdf? Assume embedded images are already clean. I got the impression from https://gist.github.com/hubgit/6078384 that exiftool -...
Toothrot's user avatar
  • 3,485
1 vote
1 answer
1k views

ffmpeg not copying FRONT_COVER image metadata during conversion

When doing an mp3 → mp3 (or flac → mp3) conversion, -map_metadata can be used to copy metadata from the input file to the output file: ffmpeg -hide_banner -loglevel warning -nostats -i "${source}&...
starbeamrainbowlabs's user avatar
0 votes
1 answer
567 views

How to I remove the all meta-data, identify objects, embedded-data, non-pdf/embedded binary, identity(IDs), embedded-character etc in PDF file?

I want convert the PDF to only TEXT(as unicode) & IMAGE based PDF. So the pdf document should consist only of images and text. I want to do this in a GNU/Linux environment, it would be better for ...
rojen's user avatar
  • 184
0 votes
1 answer
317 views

How to I set document ID or ID to PDF file via terminal?

Hello I am writing a bash script, this script must give ID to pdf file. How do I solve the this, is there a way? Example as using bash shell. Document ID is: $ exiftool example.pdf | grep 'Document ID'...
rojen's user avatar
  • 184
4 votes
1 answer
3k views

Filesystems which allow storing custom metadata on files?

Linux already stores a lot of metadata with files. e.g. owner, permissions, file's name, checksums (in some file systems), along with essential data like location on disk. Is there any filesystem (e....
Peeyush Kushwaha's user avatar
1 vote
1 answer
4k views

Are file modification times in UTC or in the local time zone?

If I touch a new file, I see that its modification time is showing as the current time in my local time-zone rather than in UTC. If I were to copy that file to a machine that's in another time-zone, ...
user779159's user avatar
0 votes
2 answers
2k views

How do I find all sqlite databases inside a bunch of files without file endings?

I have a bunch of files that have just hashes as names and no file endings. (It's an iPhone backup to be precise.) I know there are SQLite databases amongst these files. How do I find them?
303's user avatar
  • 145
0 votes
1 answer
578 views

Why do inode offset values appear to exceed inode size?

I'm studying the Ext4 filesystem and am confused by the 128 byte inode size because it appears to conflict with the last metatdata value it stores which is supposed to be offset at byte 156. In this ...
Keenan's user avatar
  • 73
0 votes
1 answer
73 views

Unix/Linux backup account that does not update LAST ACCESS files metadata

I'm actually wondering if on Unix/Linux systems, there is a equivalent of "Backup Operators" on Windows. On Windows, being member of this group allows to open files without updating their LAST ACCESS ...
Simon Favre's user avatar
3 votes
0 answers
225 views

What does this 'exif:GPSInfo: 8253' mean in ImageMagick identify command?

Totally love the tool and documentation and currently trying to use EXIF data to geotag my own pictures. Just wondering what this exactly means: exif:GPSInfo: 8253 It pops up in the exif section ...
Tabish Rashidi's user avatar