1
vote
1answer
36 views

Linux command to check wherever this day is a DST change day and which direction?

Im currently designing a solution to synchronize a Clock on a Equipment. Each time the Equipment is turned on after a poweroff, its Clock is exactly "01:01". To sync this Equipment, I have a NEXA ...
2
votes
2answers
61 views

How do I know if the hardware clock in linux is set to localtime or UTC?

I have a dual booted PC, and in order to have Windows and Linux agree on the time, I have set the hardware clock to localtime in linux as described here. Now I want to make a script to check if my ...
0
votes
0answers
45 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
0
votes
2answers
49 views

What does ARC stand for in terms of Linux time concepts?

Under Linux (Fedora 20), there is a file at /etc/sysconfig/clock looking like as follows: ZONE="America/Denver" UTC=true ARC=false What does ARC stand for?
1
vote
0answers
81 views

NTP Multicast configuration

I'm trying to get NTP multicast set up between a few computers. Right now I'm getting NTP multicast packets from a computer that I have neither access to nor information on (let's call that A) that is ...
2
votes
0answers
331 views

Why does NTP require bi-directional firewall access to UDP port 123?

From What are the iptables rules to permit ntp?: iptables -A INPUT -p udp --dport 123 -j ACCEPT iptables -A OUTPUT -p udp --sport 123 -j ACCEPT Also, from the NTP website: ... ntpd requires ...
0
votes
1answer
71 views

How to find process stop time in linux?

I have one application which runs 24x7 in my system. But some how it was killed abruptly. I observe it 2 or 3 times from last 10 days. Now I want to find from how much time my application is stopped. ...
0
votes
1answer
102 views

hardware clock is set but date command is displayed wrong date and time

I am setting date with settimeofday function my hardware clock is set perfectly but when i execute date command it shows me wrong date and time. but if i reboot the system than it show me proper ...
2
votes
1answer
133 views

What is the rationale behind the default values for adjtimex --adjust?

The adjtimex utility has an --adjust mode that can be used to compare the system clock with the CMOS clock, calculate suggested values for the tick and frequency offset kernel time variables, and ...
1
vote
1answer
669 views

Timezone setting in linux

I'm setting timezone GMT+6 in my linux machine by copying zoneinfo file to /etc/localtime but date command showing time UTCtime-6, can any one explain me this behaviour? I'm assuming date command ...
1
vote
1answer
611 views

Significance behind January 6 1980 server time

Today my iPhone reset it's date to Jan. 6 1980... I googled it and apparently it's a very common problem (A ton of results for January 1980... Most if not all were in January 6th of 1980)... the ...
4
votes
1answer
439 views

NTP daemon or ntpdate doesn't synchronize

I'm having some problems with synchronization with an NTP server. 1) The NTP daemon doesn't sync the system clock at all, even though it's running (confirmed with /etc/init.d/ntp status). Forcing to ...
0
votes
1answer
145 views

Arch Linux - Get time offset for all timezones

I am using Arch Linux timedatectl list-timezones command to retrieve the list of time zones. I would like to get the time difference i.e. offset (from UTC/GMT) for each time zone. For example: ...
0
votes
1answer
98 views

Per-user faketime in Linux

I already know about faketime and datefudge, but is there a way to set this up transparently for any process that's being run as a certain user (identified by a specific UID)?
0
votes
0answers
54 views

Can't Parsing Log Linux File Today

I'd like to monitor my linux logs and pull information from the logs to process the files that activities of the workers I do, in my company. #!/bin/bash #if [[ -z "$1" ]]; then # echo ...
12
votes
3answers
19k views

Updating Time : ntpdate[3108]: the NTP socket is in use, exiting

The time on my system is incorrect for some reason. i need to run an update but i can't seem to be able to this is the errror. ntpdate pool.ntp.org 31 Aug 12:31:59 ntpdate[3108]: the NTP socket is in ...
1
vote
2answers
329 views

Measure a process' run time in Windows and Linux

I'm writing a program that performs certain optimizations on an executable file and am looking for a way to measure the time the executable took to run. I've been using a script that measures the ...
1
vote
2answers
194 views

Linux, Unix, Windows… Is access/modify time relative to system time?

I have searched, but can't find the right terminology. For example, if today was Friday, and a file was modified on Wednesday, then when I change the system time to Saturday, does the file's mtime ...
2
votes
2answers
746 views

Time the execution time of multiple commands

Is there a way to time a series of commands in linux? Perhaps something like this: /usr/bin/time { ls; pwd; ls }
0
votes
4answers
400 views

How to set the time temporarily in Linux

I am testing some code with some random numbers generated with the current time as the seed using srand(time(0)) I'd like to get the same random numbers every time when I run it. So I want to set ...
3
votes
1answer
212 views

Get the time it took to execute the previous command in linux(without re-executing that command)

I know the time command allows you to time the execution of a given command. But is it possible to get the execution time of the previous command without re-executing that previous command?
0
votes
1answer
858 views

In Fedora, Perl program cannot find Time::Piece library

I have a Perl program named /usr/bin/octbatch running as a script on Fedora 17 Linux. When I run this command: /usr/bin/octbatch I get the error: Can't locate Time/Piece.pm in @INC (@INC ...
0
votes
1answer
595 views

Changing time or offsetting it in OpenVZ contained server

I am trying to run a VPS, a Debian box contained in an OpenVZ container. Obviously, I cannot use time --set or any such command, as the time must be set via the parent node. The owner of the parent ...
6
votes
2answers
934 views

Is there any command like time, but for memory usage?

Is there any command like time, but that reports more statistics? It would be great if I could do something like: $ statistics some_command time: real 0m3.002s user 0m0.000s sys ...
1
vote
1answer
97 views

crontabs hour specification */1 is that the same as *

I am looking for clarification with the cron tab that I am working with. some job 1 * * * * some job 1 */1 * * * Are those jobs the same? The job will run the first minute every ...
1
vote
1answer
160 views

Why does CPU processing time matter when compared to real wall clock time?

I am running the command time 7zr a -mx=9 sample.7z sample.log to gauge how long it takes to compress a file larger than 1GB. The results I get are as follows. real 10m40.156s user 17m38.862s ...
2
votes
0answers
265 views

Slow down clock/timer of a Linux program

Sometimes a Linux program requiring fast user interaction/manual dexterity runs too fast for me to keep up. Examples include video games and video players that don't let you control the speed. How ...
3
votes
1answer
344 views

Using time to get CPU usage of a process, but not its children

When using time some_executable - the system and user CPU time returned actually includes all the CPU time of any child processes launched by the named executable (this was news to me, actually). I ...
2
votes
2answers
825 views

Timezone in Windows and Linux

On the same machine I am using Win 7 and Debian Linux (KDE). I have issues with the timezone settings. Both systems are set to London time, but the clock in Windows (before it gets adjusted over the ...
0
votes
2answers
2k views

CentOS 6 timezone is BST, but it's an hour behind BST?

Running a (fairly) fresh install of CentOS 6. [jammy@peach]$ date Fri Jul 13 15:41:30 BST 2012 The actual BST time is exactly one hour ahead of this, 16:41. Unless I'm missing something about ...
1
vote
0answers
930 views

Gnome 3 - Unable to change date and time

I am running Arch Linux with Gnome 3. Unfortunately, although my time and date settings in /etc/rc.conf show that HARDWARECLOCK='UTC' and TIMEZONE='America/LosAngeles'. I continue to get the timezone ...
0
votes
0answers
597 views

Linux stuck one hour ahead (CentOS)

I use CentOS, and for some reason, one of the servers I bought (amongst a network of other servers I do not own) is off by one hour. The time is one hour ahead no matter what time zone I set it to. ...
0
votes
2answers
195 views

Change Linux System Time Relatively

I need a script which will modify the system time by x amount of minutes. Something like: #time = 12:56 #x = 2 if time_bool: time = time + x #time = 12:58 else: time = time - x #time = ...
2
votes
2answers
247 views

Why do people care so much about boot time of an operating system? [closed]

I run both Windows and Linux, and I rarely restart my computer, once a week or a month. I just close the lid to put it to sleep or just press sleep. But whenever I see an operating system being ...
1
vote
1answer
749 views

How to make mplayer or VLC start playing video at strict time?

I want mplayer and VLC start playing at exact time. Player should: Load video file, buffer it, prepare everything; Wait for UNIX time to be N seconds M milliseconds Start playing according to ...
3
votes
1answer
5k views

Using find -mmin to find files with modification time in the future

I can use find . -mmin -5 to find files changed in last 5 minutes. However if I try to find files with modification time in the future by giving negative number find refuses to do it: find . -mmin ...
1
vote
1answer
52 views

unexpected return value of time command

These commands work fine: (calculates time between opening and closing the program) time gedit time emacs time vim But this command always gives a time under 1 second. It's probably time which ...
0
votes
1answer
302 views

Is there a program to accelerate/slowdown time in other process?

Is there a program/library that allows to override time flow in other processes? Expecting it to override clock_gettime, gettimeofday, alarm and other functions that report time or use timeout using ...
0
votes
1answer
645 views

Archlinux boot time

I have Archlinux installed in my netbook. I want to reduce the boot time to less than 10 seconds. Is this possible? Do you have any success in reducing the boot time to a larger extent? I am aware of ...
0
votes
1answer
92 views

Is there Linux software that can read out times?

I have seen how Mac can tell (and say) time on hourly, half-an-hour, or quarterly basis. This is very convenient because you can hear the Mac telling you what time it is. I am looking for something ...
0
votes
1answer
192 views

Can I copy the ntpdate binary from another machine in order to update date & time?

On my Red Hat 5.3 Linux machine, NTP isn’t installed (can't install it for some reasons). However I can copy the binary /usr/sbin/ntpdate from another Linux machine to mine. If I only get the file ...
2
votes
2answers
3k views

How do I interpret the output of the “time” command?

time a.out 106.130u 0.000s 1:46.28 99.8% 0+0k 0+0io 83pf+0w As per my understanding of the man page: the first value is the time since the code execution started and ended, the second values ...
0
votes
3answers
6k views

Ubuntu clock is wrong and I can't change it (running as VirtualBox Guest under OSX)

I have a strange problem with my Ubuntu Natty virtual machine running under VirtualBox on OSX. One day last week, my clock on the top bar in Gnome stopped displaying the correct time (I'm not running ...
4
votes
1answer
674 views

Linux - Forcing 24-hour locale?

Is there any way to force 24-hour time in my locale (for example, 14:00) instead of 12-hour time (2:00 PM)? I use the en_US locale with a UTF-8 character set on Arch Linux, but this shouldn't matter, ...
5
votes
2answers
13k views

How to set Debian to automatically update time and date?

I have an old computer and BIOS counts the time slower than real ;) So, how can I set my OS to update the time automatically using the internet? If it updated the time only during booting, it would ...
1
vote
2answers
515 views

Find command taking too long on ubuntu 10.10

The find command is taking too long on my machine to complete. When I use time command, I find that sys time and user time are too small as compared to real time. Is my find process not getting ...
6
votes
3answers
5k views

Network latency measurement (Linux)

I'd like to measure network latency for SNMP GET request. There is a free command line tool time which can be used to find timing statistics for various commands. For example it can be used with ...
3
votes
2answers
2k views

How to make an application detect if system time has changed in Linux

I need to write a small application which needs to detect if the system time is changed by an another application/user and perform some action as soon as it is detected (maybe log the data that time ...
2
votes
2answers
398 views

time command - what intervals do user and sys parameters measure?

I did a time on my script and this is what I got: $ time <myscript> real 7m5.458s user 0m7.444s sys 0m3.748s $ which means that it ran for 7 minutes and 5.458 seconds. What do the ...
7
votes
6answers
18k views

how long to zero a drive with dd? [closed]

How long will it take to zero fill 1TB (using dd dev/zero)? I'm actually doing two 500G drive simultaneously if it matters.