Tagged Questions
0
votes
2answers
57 views
Executing a program according to the last modified date
I need to write a script which would execute some executables in a directory according to the last modified date. The oldest should run first. How do I do it?
This is what I have done so far
for f ...
2
votes
2answers
85 views
Correct use of TZ, date, and hwclock?
I'm working on an Buildroot developed ARM/ulibc Linux distribution for a custom board. I'm trying to understand the relationship between
If I do this, as I've seen on a few examples online:
# date ...
2
votes
2answers
245 views
I messed up my system clock in Arch Linux
I installed Arch a couple of days ago. Just realized the date/time were off by a day and one hour.
I changed it using timedatectl set-time. Then used hwclock --systohc to set the hardware clock. ...
3
votes
1answer
578 views
show the year while listing files in the current directory
I am working on a red hat server
I want to list the files in a way where the year when each was file created would appear in the Date
how is that possible ?
0
votes
2answers
1k views
linux + add 10 days to date and get new virtual date
I have Linux ( RH 5.3) machine
I need to add/calculate 10 days plus date so then I will get new date (expiration date))
for example
# date
Sun Sep 11 07:59:16 IST 2012
So I need to get
...
2
votes
2answers
111 views
Is the system time correct when no date has been set?
If I was looking through a debian log file and I come across Jan 1st 1970 08:21:34 in a log, did the action happen at 08:21:34, just the correct date had not been set? Or if no date had been set is ...
8
votes
2answers
264 views
What is a distro-agnostic way determine the OS install date?
I am on a CrunchBang machine and trying to write a script that needs to have the OS install date as a reference.
I searched and found this command:
ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'
...