Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

date

last time file opened

August 8, 2022 by Magenaut

Is it possible to get the time when file was opened last time and sort all files in a directory by those times?

Categories Q&A, Unix & Linux Tags date, files, ls Leave a comment

How do I convert an epoch timestamp to a human readable format on the cli?

August 8, 2022 by Magenaut

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).

Categories Q&A, Unix & Linux Tags command-line, date, shell Leave a comment

Force date to read Day/Month/Year

August 8, 2022 by Magenaut

How to I get the GNU date command to interpret dates in the format ‘dd/mm/yyyy’, for example:

Categories Q&A, Unix & Linux Tags date Leave a comment

Find files which are created a certain time after or before a particular file was created

August 7, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags date, find, shell, shell-script Leave a comment

date command –iso-8601 option

August 7, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags date Leave a comment

How do I remove leading zeroes from output of ‘date’ or avoid octal interpretation of such decimal numbers?

August 7, 2022 by Magenaut

I have this:

Categories Q&A, Unix & Linux Tags arithmetic, bash, date, shell Leave a comment

Why does TZ=UTC-8 produce dates that are UTC+8?

August 7, 2022 by Magenaut

The current time in Los Angeles is 18:05. But when I run TZ=UTC-8 date --iso=ns, I get:

Categories Q&A, Unix & Linux Tags date, timezone Leave a comment

Create sub-directories and organize files by date

August 7, 2022 by Magenaut

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;

Categories Q&A, Unix & Linux Tags date, files, rename, scripting, shell-script Leave a comment

How do you time how long a command took to run?

August 7, 2022 by Magenaut

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

Categories Q&A, Unix & Linux Tags bash, date, time Leave a comment

First and last day of a month

August 6, 2022 by Magenaut

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:

Categories Q&A, Unix & Linux Tags calendar, date Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page13 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress