Questions tagged [file-metadata]
Questions about exacting or editing the metadata (creation-date, modified, author etc.) of a file.
103
questions
0
votes
1
answer
31
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 ...
1
vote
1
answer
21
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 ...
5
votes
2
answers
254
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 ...
7
votes
2
answers
471
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 ...
0
votes
1
answer
51
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 ...
0
votes
1
answer
173
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, ...
0
votes
5
answers
687
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-...
0
votes
1
answer
53
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 ...
-4
votes
1
answer
53
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 ...
0
votes
1
answer
228
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 ...
2
votes
0
answers
277
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 ...
0
votes
0
answers
232
views
mpv show filename as title if media-title is n/a
I want mpv to show the media-title as mpv's window's title which it does by default
but some files have n/a as media-title in which case i want it to show the filename as mpv's window's title
I am ...
0
votes
1
answer
302
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 ...
3
votes
1
answer
1k
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 ...
0
votes
1
answer
574
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 ...
2
votes
0
answers
1k
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'...
0
votes
1
answer
237
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 ...
0
votes
0
answers
535
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 ...
0
votes
1
answer
189
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 ...
0
votes
1
answer
100
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/...
2
votes
1
answer
405
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
...
2
votes
0
answers
214
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 ...
1
vote
1
answer
611
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 ...
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-...
0
votes
1
answer
74
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 ...
0
votes
1
answer
268
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
...
1
vote
1
answer
211
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 ...
0
votes
1
answer
180
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 ...
0
votes
2
answers
630
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 ...
3
votes
1
answer
715
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 ...
1
vote
1
answer
570
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, ...
1
vote
0
answers
131
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 ...
1
vote
2
answers
445
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
...
1
vote
1
answer
353
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 ...
0
votes
2
answers
133
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 ...
12
votes
3
answers
18k
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 -...
1
vote
1
answer
962
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}&...
0
votes
1
answer
363
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 ...
0
votes
1
answer
237
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'...
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....
1
vote
1
answer
3k
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, ...
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?
0
votes
1
answer
487
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 ...
0
votes
1
answer
67
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 ...
2
votes
0
answers
196
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 ...
3
votes
2
answers
2k
views
Batch set MP4 create date metadata from filename
On a Linux system,
I have a bunch of MP4 files named like 20190228_155905.mp4 but with no metadata. I've previously had a similar problem with some jpg's which I solved manually with
exiv2 -M"set ...
3
votes
1
answer
288
views
Annotating any files
I have had this problem for a very long time, had several discussions with friends, and tried searching relating info online. All efforts were in vain so I decide to give a shot here.
I have lots of ...
1
vote
1
answer
825
views
Why does a file's Inode number change and nothing else?
Today I noticed that tripwire thinks that some Apache configuration files changed yesterday. I know I did not make any changes to those files.
Looking at the info, it shows that only the Inode number ...
0
votes
1
answer
429
views
ntfsclone, metadata-only cloning....why?
Been reading the ntfsclone manual but I still can understand and see the point of doing a Metadata-only cloning? What is the point of this, when can it be valuable?
I assume "metadata" is just ...
5
votes
0
answers
188
views
Why does the touch command work in one directory, but not in the other?
On the same mount, the touch command sometimes doesn't work
Using different directories on the same mount, the touch command gives different results
**bob@syno ~ % ll -d /volume1/media ; ll -d /...