Linux/Epoch Timestamp

From Omnia
Revision as of 04:13, 9 October 2023 by Kenneth (talk | contribs) (Created page with " 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 [https://unix.stackexchang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]