List full timestamps of files in a tarball

5,104

I might be misreading your question but have you tried tar -t -v --full-time -f?

Share:
5,104

Related videos on Youtube

Mechanical snail
Author by

Mechanical snail

🐌. Native speaker of American English. Linux user. Familiar with several programming languages in the procedural, OO, and functional paradigms. Worst Code Golf ever New badge proposals! Shakespeare bug in Ubuntu The Great Question Deletion Audit of 2012 Chat Horrible spiders Adorable fluffy things LASERS! Link rot is evil. Archive everything. The keyboard is king. Correctness over performance. Canonicalize, normalize, deduplicate. Don't repeat yourself. UTF-8 > UTF-16. Use static typing: good for tooling. Re-use; don't re-invent. Correctness, then clarity, then concision and elegance. Play devil's advocate. First understand opponents' positions.

Updated on September 18, 2022

Comments

  • Mechanical snail
    Mechanical snail over 1 year

    I have a large tar archive and want to see the exact (nanosecond) timestamps that are stored for each file in the archive. In case it's relevant, the tarball is in POSIX-2001 format (tar --format=posix).

    tar --list --verbose displays the timestamps rounded off to the minute.

    For comparison, ls --full-time does what I want, but I'd rather not have to extract everything first because it's huge.

    For my purposes, command-line and GUI tools are both fine.

  • Mechanical snail
    Mechanical snail over 11 years
    I swear I tried that before and it didn't work, but now it does. Strange.