last time file opened
Is it possible to get the time when file was opened last time and sort all files in a directory by those times?
Is it possible to get the time when file was opened last time and sort all files in a directory by those times?
How do I convert an epoch timestamp to a human readable format on the cli? I think there’s a way to do it with date but the syntax eludes me (other ways welcome).
How to I get the GNU date command to interpret dates in the format ‘dd/mm/yyyy’, for example:
I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.
This answer and comments mention --rfc-3339 and a “hidden” --iso-8601 option that I have used for a long time and now seems to be undocumented.
The current time in Los Angeles is 18:05. But when I run TZ=UTC-8 date --iso=ns, I get:
I have some directories of files copied from my security camera that I would like to organize into sub-directories by file date. So for example;
How would you find out how long a running process took to complete? Example: date; dd bs=1m if=/foo of=bar; date ^This example only has 1 second of resolution. Any shell is acceptable. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue … Read more
Given two numbers, month and year, how can I compute the first and the last day of that month ? My goal is to output these three lines: