Questions tagged [time]
`time` is a command line utility for running another program and summarizing resource usage
509 questions
0
votes
1
answer
98
views
Do I still need to set my server's time zone to UTC?
OS is Raspberry Pi OS 12.
It looks like timedatectl shows the date both in UTC and my local timezone. Since it looks like the OS keeps track of UTC explicitly, is there any reason to not set the ...
4
votes
2
answers
337
views
Invalid date when setting one computer's clock from another
I have the following code in a Bash script, which takes the current date/time and sets it via SSH on a target computer:
ssh <user>@<target> "date --set '$(date)'"
This was ...
0
votes
0
answers
45
views
How to set the time so that it lags by 1 second
I need the time to lag exactly by 1 second. That is, so that the time is synchronized, but lags.
Now I use timedatectl set-ntp on.
How can this be achieved? Maybe there is a possibility to set the ...
0
votes
1
answer
109
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 ...
0
votes
0
answers
196
views
Timedatectl output does not change after running ntpdate command in Kali Linux
I am currently doing a pen testing CTF challenge on HacktheBox.com (HTB) that involves manipulation of Kerberos TGT tickets so need to sync my local system time on my Kali Linux instance with the ...
3
votes
0
answers
73
views
Linux clock source from FPGA
I'm trying to get the Linux kernel (and system as a whole) to sync to a monotonically incrementing clock from a FPGA register in memory. The clock is 64-bits wide and divided into two 32-bit sections: ...
1
vote
1
answer
120
views
Where can I find the configuration/setting for NTP to explain the specific behavior observed in an NTP client?
I have recently been doing a specific timing analysis
of the performance of NTP under controlled conditions.
The experiment I performed was conceptually quite simple.
I have an NTP server running ...
0
votes
1
answer
100
views
start command at given time interactively in terminal
is there similar command to sleep, but where I can specify given time, so that my command will start at given time, INTERACTIVELY in my current open terminal window?
I know about at command, but that ...
18
votes
6
answers
9k
views
How does a Linux operating system stand going back in time (when applying winter time for example)? Going back a second, would it be the same problem?
I'm asking myself after having read on papers that around the year 2035, we, on the earth and our computers by the way, might have to correct our time by one second back to comply with astronomical ...
0
votes
1
answer
991
views
Can I configure tmux to show seconds of current time upon Prefix t?
On Prefix t (by default Ctrl+b t), tmux displays the time, and it looks something like this:
Is there any way to configure this, e.g. to show the seconds, too?
I tried setting export LC_TIME="%H:...
3
votes
1
answer
101
views
how to format `time` output [duplicate]
I'm using Ubuntu 23.10 x64. The time program has an -f flag but when I run it says -f command not found.
time -f "%Uu %Ss %er %MkB %C" ./countwords hamlet.txt
I'm trying to get the time ...
1
vote
1
answer
53
views
Why does /usr/bin/time coupled with GNU parallel output results before command's output rather than after command's output?
Scenario:
$ cat libs.txt
lib.a
lib1.a
$ cat t1a.sh
f1()
{
local lib=$1
stdbuf -o0 printf "job for $lib started\n"
sleep 2
stdbuf -o0 printf "job for $...
0
votes
2
answers
100
views
Speeding up time flow for stability testing
Is it possible to speed up time flow in Linux system? Doesn't matter if virtualized or on bare metal. I need to test if my program could have uptime for ~10 years. So accelerating about 4000 times of ...
1
vote
2
answers
8k
views
What is the command to change the 'System clock synchronized:' setting from 'no' to 'yes' in photon os
I have a VM running Photon OS 3.0. NTP is not configured and it is using the hardware clock.
It has fallen out of sync. The hardware clock hwclock is in sync with the hypervisor time, but when I run ...
35
votes
2
answers
4k
views
Why is filesystem time always some msecs behind system time in Linux?
In Linux, it seems that filesystem time is always some milliseconds behind system time, leading to inconsistencies if you want to check if a file has been modified before or after a given time in very ...