General :: Uptime - Getting Date & Time Of System Startup?
Mar 28, 2011
I know that uptime prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output?I tried looking around /proc, but didn't find anything of relevance. There's also a line like this on my dmesg: [ 0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812), but I'm wondering if this method is distribution and kernel version agnostic.
View 5 Replies
ADVERTISEMENT
May 11, 2011
My Linux system was last rebooted few hours ago. But it seems little confusing for me to figure out the exact reason behind it. I guess following command should justify what i meant to say.
Code:
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 Tue May 10 17:35 (19:46)
root pts/1 XXXX Tue May 10 17:24 - 18:18 (00:53)
[Code]...
My question is Why the uptime is saying that the system is up since last 47 min.It should be more than 1 day if i m not wrong.
View 2 Replies
View Related
Jul 28, 2010
I know several tools that allow tracking time spend on different tasks / projects.Is there any existing tool for very very simplified work-time-tracking.I am an employee, come to the office, switch on my laptop directly. I have mostly around 1 hr lunchtime, but sometimes less, sometimes more.At around 18:00 I want to type one command in the console (or simple GUI would also be okay of course) that tells me:"1 hour overworked. Go home now! (came at 8:00, 1 hour standard lunch-break)."
View 1 Replies
View Related
Sep 15, 2010
How can init process uptime be longer than the uptime of whole system?
Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
PID CMD TIME STARTED
1 init [3] 20:50 Mar 05
martin@server:~> uptime
2:23pm up 559 days 1:42, 10 users, load average: 0.18, 0.28, 0.34
martin@server:~>
View 1 Replies
View Related
May 13, 2010
Lucid 10.04, auto upgraded from 9.10, accessed through NoMachine NX from my MacBook Pro 10.6 system.
When I try to access the time settings through the System > Administration > Time and Date menu, all I get is the greyed-out display with the message Not authotized to make changes at the bottom.
With other administration functions, I am asked for sudo-style authorization with my password. That doesn't happen with Time and Date.
View 2 Replies
View Related
Aug 19, 2011
I want to change the Date and Time of the system from my application. This can be done using the "Date -s" linux command. But the application has to be executed as root/sudo. is it possible that root can give permission to normal user to execute the "Date -s" command?
View 9 Replies
View Related
Jun 29, 2010
I have the application and kernel module running on my system. In the meantime, I am changing the date and time of the system. However, this change doesn't reflect on log messages of the application that's being executed.
View 5 Replies
View Related
Jun 26, 2011
Why is the output of the following commands different?
root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#
And can I change the current time on Linux?
View 4 Replies
View Related
Oct 4, 2010
rpm -qa --last lists all rpm with date and time. But I want to sort the list by date, with earlier rpm displayed first. So it needs pipe, rpm -qa --last |
View 2 Replies
View Related
Mar 19, 2010
Centos 5.4 64bitWould like to know when a particular process was started.1.Quote:ll -d /proc/4014/dr-xr-xr-x 5 mysql mysql 0 Nov 28 07:34 /proc/4014/2.Quote:ps -o pid,lstart -p 4014 PIDSTARTED 4014 Tue Nov 17 23:10:13 20091) Which one should I consider?2) why do both have such a difference?
View 1 Replies
View Related
Sep 10, 2009
I would appreciate help with how to extract the date and time from at command jobs. From what I can tell, the date and time is embedded in the file name (/var/spool/atjobs).I'd be using this information in a (bash) shell script.
View 14 Replies
View Related
Jan 13, 2010
I have a file called foo with a date string in it - and nothing else in the file
2010.01.13-22:28:28
I want to send this file content to date -s command so I can modify using a cron job.
I tried several ways to pipe the file contents to date command but did not work.
View 4 Replies
View Related
Mar 16, 2011
I am using Ubuntu 10.4 and by mistake I deleted time and date. How do I reinstall?
View 2 Replies
View Related
Feb 22, 2010
language: cOs: ubuntu 9.10 want a c or c++ program that gives the system uptime in YYYY: MM: DD HH : MM: SS format.eally it is head ditching..This is not home work or assisgnment..
View 10 Replies
View Related
Aug 14, 2011
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 be enough.
View 2 Replies
View Related
Oct 3, 2009
I've got fedora 11 set up to use network time protocol to sync my laptop's date & time when I'm on-line. The question is simple really, I've added a local universality's time server (what is public) and it's live. but it's added to the end of the default time servers what come with fedora. How do I get fedora to just use the local time server, is it a case of removing the default time servers for fedora, but there is a box what says advanced options which are. sync system clock before starting service ???? & use Local time source (( is that the same as the local ntp server that I've got set up ))Hope some body can help me with the network time protocol part of Date/Time settings.
View 9 Replies
View Related
Feb 19, 2010
I tried googling but couldnt find the task manager equivalent? Just want to find out how much memory LINUX uses in general as I have been using it for few days and everything seems faster than on vista with no programs freezing! Also on my taskbar, when I click on the time to change it, it doesn't work? I think the timezone is set to US or something but how do i change the timezone?
View 2 Replies
View Related
May 31, 2010
I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.
For this what needs to be added in the below script??
#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt
View 7 Replies
View Related
Jan 11, 2010
How do i log the start/completion (time&date) of my cron job script? i want to be able to see what time it started and what time it finished? and if there where any errors while running my script.
View 3 Replies
View Related
Jun 26, 2010
I used to have the date and time in the upper right hand corner and then yesterday morning it was just gone. I can't figure out how to get it back up there. I've looked everywhere I thought it would be to put it back on there and I've had no such luck.
View 2 Replies
View Related
Oct 28, 2010
I want to synchronize my time to a time server in Singapore. How can i do so with the Time and Date in System - Administration - Time and Date?
View 4 Replies
View Related
Jan 11, 2010
I have a problem..
the Date and time are changing all the time...
Meanwhile, I'm set the clock every day, But I must find a solution ... Do you have a solution?
View 1 Replies
View Related
Sep 9, 2010
what is diff between "uptime" and "date" command. where we can use these command
View 3 Replies
View Related
Mar 18, 2009
I'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:
Code:
ls -l | grep 'date/time range' | mv /folder
View 6 Replies
View Related
Jan 4, 2011
I wrote a hack script that outputs the following every so often: Code: 01/04/11 10:33:02: 97,1413,1447,2860 I must leave the data format the same --but I want a special number from it. In this case it's 97 and it's always going to be the first in the 4 columns of comma delimited items. I can extract with this:
Code: cat datafile | awk -F" " {'print $3'} | awk -F"," {'print $1'} But that's really sloppy. Can someone point out a better way of doing this (with awk) and tell me why?
View 3 Replies
View Related
Nov 29, 2009
I have SLES 11 and activated the daily updates.
But i don't know if the system :dowloads the updates
if the downloaded updates are immidiately installed
some updates need to reboot the system. does it automatically reboot or
does he(the system) inform me ? (where ?)
View 2 Replies
View Related
Apr 15, 2010
I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.
View 3 Replies
View Related
Aug 4, 2009
get the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct
View 3 Replies
View Related
Mar 10, 2011
I want to try Linux on a 5yr old desktop, What is the best and up to date Linux to install.CPU-AMD Sempron(tn)3000+,CPU Speed-2000MHz/333MHz, Ram 1.5G
View 8 Replies
View Related
Mar 12, 2010
I want to measure the startup time of any GUI app (e.g. firefox) using the time(1) command. However, timing is measured until the app is closed, which has to be done manually by exiting it or clicking X.
How can I get the app to load, terminate immediately and give me the startup time?
View 2 Replies
View Related