Questions tagged [timestamp]
The time (and date) stamp, usually of a file, when the event (or last change) occurred.
60
questions
0
votes
0
answers
70
views
Why do the timestamp of files change when copied to Ubuntu?
I have to make files (documents, images) backup from my phone to PC frequently. Then I copy those backup files back to my phone.
When I do it in Windows, the timestamps of the files remain intact. For ...
0
votes
1
answer
51
views
find (mmin) gives unexpected results
I originally wanted to find which files have been modified in the last week (before the unexpected results led me onto the quest I describe in this question), so I ran this following command (10080 ...
1
vote
1
answer
247
views
How to copy date created to date modified ubuntu 22.04
I am using ubuntu 22.04 LTS and I want to know if the date created on ubuntu can be copied to date modified? I think I've read that the date created on ubuntu isn't actually the date created even ...
0
votes
1
answer
317
views
Put timestamps on data gathered from serial port
I use this code: https://www.pythonpool.com/python-serial-read/ and more specifically the code under the paragraph: Reading Data From Arduino Boards using Python Serial Read. The data I get are like ...
0
votes
1
answer
1k
views
Crontab job that compresses file with timestamp
Ubuntu (Oracle VM virtual box)
I got an assignment to write 3 crontab jobs as follows:
logger - job that prints the date into /var/log/myDate.log every 30 minutes
archiver - job that compressed /var/...
1
vote
1
answer
207
views
Octave 2d Plotting time series - line not connecting markers (precision error)
Relevant info: Octave version...5.2.0
pkgs used: io-2.6.2
tablicious-0.3.5
Ubuntu version- 20.04.4 LTS
Hi! I'm reading timestamp and temperature data from an xlsx spreadsheet into Octave. I'm running ...
0
votes
1
answer
44
views
Xubuntu 20.04 on Dell Latitude e6530: How to display time stamp in File Manager?
I haven't found how to tell File Manager to display time stamps as default. Is that possible? So inconvenient not to have that when copying files from one location to another.
0
votes
0
answers
195
views
How to know that the chrony works well to synchronize timestamps on two computers?
I used the chrony to synchronize timestamps on two computers.
The robot's computer is a master and the workstation's computer is a client.
All I did, I follow the question's answer here after ...
0
votes
1
answer
429
views
Timestamp keyboard shortcut
On Ubuntu Mate 20.10 on a Lenovo T450 notebook, I have been trying to create a timestamp keyboard shortcut for quite a while. The intent is to be able to insert a time stamp into any sort of file as ...
-2
votes
1
answer
67
views
Golang: timestamp add not working
the task is this, I need to add 5 minutes to the timestamp, but whatever I do, the time does not change, what am I doing wrong?
Example: https://play.golang.org/p/AavonfZk2bn
0
votes
2
answers
512
views
Add timestamp to files
I am using Lubuntu 20.04 LTS. I would like to add a timestamp to some wav files so they can be uploaded to a web site. I would like the first file to be Garden2021-05-02_04-10-00.wav and the following ...
0
votes
0
answers
22
views
forrmatting date in command line output [duplicate]
This will be a very dumb question to the gurus I'm guessing but here goes.
I am trying to keep track of the number of threads on my system and I need to add timestamp somewhere with each output.
Here ...
0
votes
0
answers
299
views
Append timestamp to custom logging?
I got a crontab running every night 2 in the morn'
0 2 * * * sudo sh /net/vmits0356/disc1/misc/dupdate.sh >> /net/vmits0356/disc1/misc/dupdate.log
I cannot seem to find how to append time to ...
3
votes
4
answers
7k
views
How to redirect the output of a command to a function but suppress the error and output to console?
I need to redirect the output of a command that I am running to a log file with timestamp (hence a function instead of the log file itself) but the error and the output, both should not be showing in ...
0
votes
1
answer
304
views
Is metadata (dates) for hardlinked files shared or unique? Inodes and linked files!
I always assumed that the dates in each inode were maintained separately even with hardlinks.
However if I change (touch/slap) the date of a hardlink file all other hardlinks to the same file show ...
1
vote
0
answers
484
views
Disallow timestamps from file on uploaded items
I trying to setup my first SFTP server with disallowing timestamp preserve (default option in WINscp for example). I always want to take time from the server not from file.
First, I make group (...
0
votes
0
answers
358
views
Change time doesn't change when access a file
We know that if we change access time then change time is also get change.
When I read contents of a file by using cat filename
Access time got change but change time doesn't. Why?
2
votes
1
answer
558
views
How to view all the packages installed in Ubuntu in the order of installation
I want to know which packages were installed since a particular date. I see that 'dpkg-l' command does not give the installation timestamp. Is there any option in Ubuntu to view the package ...
0
votes
1
answer
64
views
why are bash vs tcsh file timestamps different?
on my xubuntu 19.10-amd64 system I have cron running backup jobs every midnight. The destination directories created by the rsync command should therefore have timestamps of 00:00. However I'm ...
1
vote
2
answers
3k
views
I need a serial port program with logging timestamp
I am using cutecom for serial port as it have a timestamp because i need to reference for two different data. But i can't log these datas with timestamp and need ms precise. Is there any suggestion?
...
0
votes
1
answer
157
views
Getting wrong output?
I have a bash script, where it will go inside a folder and extract the time stamping by matching the key-string. And then it will convert the date and time stamping s into standard format and perform ...
2
votes
0
answers
1k
views
Different timestamp when copying files between Windows and Linux
I'm using mount.cifs to map a windows folder, then I copy hundred of files at once from windows to Ubuntu.
After that all files are syncronized and the modification times as well.
On Windows using ...
1
vote
0
answers
184
views
How to get consistent date format in the "Files" GUI?
On Ubuntu 18.04.2 LTS, when I use the "File" GUI to browse the filesystem, the timestamps are displayed very inconsistently:
Seeing at least four different formats is more than a little confusing ...
3
votes
1
answer
983
views
Permanently set prompt to show timestamp in terminal [duplicate]
I want to see the time to each command in my terminal.
When I do this command:
export PROMPT_COMMAND='echo -n "$(date +%H:%M:%S) "
after I close the terminal I need to input it again.
How ...
0
votes
1
answer
99
views
Bulk file rename, maintaining timestamps, excluding some
In Ubuntu 18.10 have beeen using mmv to prepend folder names (a date) to file names within multiple folders ('-n' flag here to review results):
mmv -n './????-??-??*/*.*' './#1#2#3#4-#5#6-#7#8#9/#1#2#...
0
votes
1
answer
262
views
How can I delete time-stamped folders if one has already been created that day?
Folders are created every time I (re)boot.
They have the format below: (the time will always vary)
.mozilla_2019_01_08_08:02
.mozilla_2019_01_09_20:16
.mozilla_2019_01_10_01:16
....
106
votes
3
answers
161k
views
Copy a file and keep the same timestamp of the original file
I need to a copy file and after that I need to change the timestamp attributes as the original file. How can I do it with the terminal or any other way?
1
vote
1
answer
1k
views
python timestamp doesn't update
my time.ctime() is not changing when executing my program each 5 second.
How can I fix it?
My program:
import random
import time
n = 1
future = time.time() + 600
for x in range(5): # program ...
2
votes
1
answer
5k
views
Calculate time difference between two times
I've recorded the following two times in a log file which checks a reverse SSH connection ever 5 minutes. If the connection is down it records the breakage and keeps trying to reconnect every 5 ...
0
votes
1
answer
1k
views
How to get time stamp with Ubuntu 16.04
I am very new to Linux, I appreciate in advance for all the help. I have searched online for various codes to get time stamp on a file. Ex: file.mp4. But all the results I got was either invalid or ...
0
votes
1
answer
222
views
port mirroring timestamp
I have enabled port mirroring of a specific port on my switch. The mirrored packets are from my eNodeB. I am viewing the mirrored packets on another server using wireshark. So where are the timestamps ...
1
vote
2
answers
9k
views
Not able to add timestamp to minicom readings
I am using Ubuntu 14.04 64bit. I am using minicom to capture bluetooth data. The data is displayed fine, but when I try to add timestamp using Ctrl+A followed by N.
I don't see any time stamp on the ...
0
votes
1
answer
935
views
How should I make the date command use the same format as rdiff-backup?
The rdiff-backup command creates incremental backups by creating several files with datestamps in their titles. The datestamps are of the format defined in the W3 Note about datetime, which are ...
1
vote
2
answers
2k
views
Convert modify time from stat into timestamp
I just started my journey into bash scripting and I wrote a little script which copies certain files to my USB stick and external harddrive as a backup. So far it copies the entire directory with all ...
0
votes
2
answers
2k
views
File modification timestamp changed after copy
I have a file (a gzipped tar) on my Ubuntu 16.04.1 system. If I get its properties from the context menu, it is shown that
Accessed: Wed, Aug 17 2016 01:39:46
Modified: Wed, Aug 17 2016 01:39:44
...
3
votes
1
answer
5k
views
How to use chrony to synchronize timestamp on two computers
I need to compare results which come from two different laptops.
Each laptop has a different set of sensors and in order to correctly compare them I need to have the same timestamp on both laptops.
...
1
vote
1
answer
2k
views
shell script to move a set of folders into one folder and timestamp it
I have a set of folders (let's assume at /home/20161, /home/20162, /home/20163) which have been timestamped already. at the end of the day, I'd like to collect all of them and move to a main directory,...
3
votes
1
answer
375
views
How to change the year to 2558?
I am a Buddhist, and if I cannot have a Buddhist calendar, I would at least like to have to Buddhist year, which is currently (in 2015) 2558. But due to the 2038 year problem, I'm not sure if I can do ...
1
vote
1
answer
1k
views
Using rsync to back up a remote computer through a reverse ssh link
I can rsync to my remote computer, but cannot rsync from my remote computer - it doesn't seem to exchange a file list in that direction, so it tries to transfer all of a huge number of files rather ...
3
votes
1
answer
3k
views
How to know the time of execution of previous commands [duplicate]
I know that using the history command I can view my past commands, but:
Is there a way to view the date and time of the execution of those
commands?
Or is that kind of information not saved?
And if ...
8
votes
4
answers
3k
views
How can I change the filename timestamp?
I have dat files' names in chronological order:
FileName_YYYY_MM_DD_HHMM.dat
Is there any commands for adding 30 minutes to each timestamp?
2
votes
2
answers
6k
views
TSC unstable switching to hpet
Current clocksource is hpet, which simply does not work with the applications I am trying to run and acpi_pm gives the same errors. I need TSC to work. I already disabled intel_pstate and set failover ...
0
votes
1
answer
956
views
Why is there a one-second timestamp difference on copy?
I periodically copy a folder from my Ubuntu 12.04 laptop to a removable USB flash drive, using the Ubuntu file system (i.e. Nautilus 3.4.2) to drag the folder from one window to the other.
It then ...
0
votes
1
answer
1k
views
Wrong timestamp in syslog
I was taking a look on my syslog, and I found this:
Nov 30 22:30:01 nori-hidamari NetworkManager[963]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 2580
Nov 30 22:30:01 nori-...
2
votes
3
answers
3k
views
create a .tar file of all latest files in the directories
I am in a directory A. This has a lot of sub directories B, C, D. Each sub directories will have a list of files. I need to create a .tar file of all the latest file in each subdirectory.
Example:
...
11
votes
4
answers
17k
views
What is a timestamp in Linux?
While reading about Linux I got the following:
touch provides several options, but here is one of interest:
The -t option allows you to set the date and time stamp of the file.
To set the ...
3
votes
1
answer
6k
views
How to check a folder timestamp?
How to get file information inherent to time: such as last modification time, recent access time and so on. Also I would like to know if it is possible to check all the modification dates of a file ...
2
votes
0
answers
2k
views
(Another) How to show full date and time in Nautilus/Files 3.10+ list view?
This question is essentially a follow up or continuation of:
How to show full date and time in Nautilus/Files 3.6+ list view?
...but b/c this isn't ANSWERING that question, I'm disallowed from ...
0
votes
1
answer
76
views
before.rules date [closed]
I can't figure out why one of my before rules file has a date that is in the future.
Today's date is July 3rd but the file time stamp states Jul 6. Below is the output from ls -l in the /etc/ufw ...
2
votes
1
answer
2k
views
How to retain date stamp while copying to another PC
Similarly to How to maintain a file's 'last modified' date ? I need to retain the date while copying the file by Krusader or in a 'Home Folder' window to another PC connected by SSH. Is it ...