Linux/Epoch Timestamp

From Omnia
Jump to navigation Jump to search
now=$(date +%s)
stat -c %Z [FILE]
find / -printf '%p %C@\n'
find / -printf '%p %Cs\n'  # In seconds, without decimal, if system supports


ref [1] [2]