Questions tagged [timestamps]
timestamp is used for questions that are about data specifying seconds since the epoch (19700101T00:00:00) or possible some other standard, and also for (date) and time information in filenames.
586 questions
1
vote
1
answer
79
views
Set timestamp from exif for png files
Basically I am looking for the PNG-equivalent of jhead -ft *.jpg (which sets the timestamp of the file based on the exif time for JPG files).
So I have png files and want to set their timestamp to the ...
4
votes
3
answers
682
views
Why does stat show different timezones corresponding to different files?
I always thought that the timezone is not stored by the filesystem, and that stat would show times formatted with the current timezone of the user, and therefore if I do stat on various files today ...
0
votes
2
answers
115
views
How to programmatically deduplicate files into hard links while maintaining the time stamps of the containing directories?
Continuing https://unix.stackexchange.com/a/22822, how to deduplicate files, given as a list, into hardlinks, while maintaining the timestamps of their directories? Unfortunately, hardlinks changes ...
0
votes
0
answers
58
views
Changed behavior of sleep command in Linux suspend and resume testing
I am working on an embedded Linux system (kernel-5.10.220).
Now I am testing the suspend and resume in this system with a watchdog time as the wakeup source to wake system up from suspend.
The ...
8
votes
1
answer
2k
views
File has been changed, but its "date modified" is the same. How is that possible?
Here is a test file test.applescript:
display dialog "foo" buttons {"OK"} cancel button 1 default button 1
At 4:05 PM I compiled it to test.app:
osacompile -o test.app test....
1
vote
1
answer
110
views
GNU `make`, modification times, leap seconds and NTP
GNU make relies on timestamps to see if a dependency was changed after some file was built. If you make a change during the leap second or an NTP adjustment, is it possible that make will believe the ...
0
votes
3
answers
244
views
How to show seconds of last modified date when using sftp command?
When I use WinSCP to access my SFTP server, it shows me the last modified (changed) date including seconds. If I use sftp on Linux and run ls -l, it only shows the hours and minutes, but no seconds. ...
0
votes
0
answers
41
views
Is there a way to use linux "find" and filter if specific process was the only one accessed it? [duplicate]
I am trying to find out a way to do incremental antivirus scan. My current approach under evaluation is using "find". You can see relevant question here: Is there a reason why I can't ...
4
votes
3
answers
1k
views
Is there a reason why I can't use find to scan modified files for viruses and malware?
I need to scan Linux systems for viruses/malware, on the entire file system. There are few options to consider.
One is normally what users do: Use antivirus to scan system once a day.
The second ...
4
votes
1
answer
355
views
ISO 8601 intervals in date arithmetic with date command
I can make some date arithmetic with date command like
$ date -u -d '3 days 2024-12-01T00:00:00Z' +%FT%H:%M:%SZ
2024-12-04T00:00:00Z
$
The date command can parse quite a lot of date formats, ...
0
votes
0
answers
156
views
Timestamp to each line of output (after finish command, how make view, when i input next command?)
In Terminal, i have see, when finish command, i view, when i input next command
I use this solution
https://unix.stackexchange.com/a/622928/675422
exec &> >( ts '%Y-%m-%d %H%M.%.S ' ) # ...
1
vote
2
answers
382
views
Copy timestamp and metadata from one file to another
I rotated an MP4-video and in this process lost the correct metadata and timestamp of the file.
Is there a way to copy the metadata and timestamp from the original (not roated) file to the new file. (...
0
votes
1
answer
190
views
How to set keyboard shortcut to insert a timestamp (time & date) in KWrite?
KWrite is included as the default text editor in several popular Linux distros (such as Fedora KDE).
Inserting a timestamp is a basic feature of text editors.
How can one set a keyboard shortcut to ...
1
vote
5
answers
368
views
Convert Date Format %Y%m%d%H%M%S to unix epoch format
I am trying all the methods but I get this error:
I want to convert this format to epoch -->
date "+%Y%m%d%H%M%S"
example --> 20240913235959
I also tried other formats such as:
date &...
2
votes
2
answers
436
views
Dmesg showing incidents in the future
While debugging Wifi issues I came across this anomaly:
$ sudo dmesg -e
[Jul 1 14:28] wlxd85d4c93a47f: deauthenticating from 1c:57:3e:96:c3:a3 by local choice (Reason: 3=DEAUTH_LEAVING)
[ +1.457910] ...