Skip to content

Instantly share code, notes, and snippets.

@qyot27
qyot27 / crtime.sh
Last active August 29, 2015 14:03 — forked from ashayh/crtime.sh
#!/bin/bash
# Author: ashay dot humane at gmail.com
# Given a file name, this script prints the file creation time,
# as ext4 records it
# Might error out on other filesystems
DEBUGFS="/sbin/debugfs"
[[ -f "$1" ]] || { echo "Invalid filename. Exiting" ; exit 1; }