04-11-2011
The straight answer to your question is "whatever time is held in the RTC chip". There is nowhere else that the Operating System can obtain the time.
Assuming your CMOS battery is good.
Your computer should keep the Real Time Clock running with the power off. It will also for example remember details about your disc drives.
The time will be as correct as the quality of your Real Time Clock allows.
If you have a hardware repair affecting the Real Time Clock it is imperative that the clock is set correctly BEFORE unix/linux/Windows boots. This is a CMOS function NOT a unix/Linux/Windows function.
A system with NTP will try to find a good time source and correct the Real Time Clock after boot. By this time it is much too late if the CMOS clock was wrong.
Btw. I prefer "date -a" over "date -s" but the most important task during system boot is to get the clock right.
Edit: To 100% clarify the answer. A "date" command without the "-s" or "-a" option is just an enquiry and will not change the CMOS date. Where you referred to BIOS in earlier posts, read CMOS.
Last edited by methyl; 04-11-2011 at 06:56 PM..
Reason: miscellaneous corrections and enhancements.
This User Gave Thanks to methyl For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm running Vector Linux on this computer, and everythign works fine, except for the NIC. I run netconfig, and then when I reboot it says:
DC21140 at 0x9400(PCI BUS 0, device 11) h/w address 00:00:C0:2E:13:dC, and reqquires IRQ 9(provided by PCI BIOS)
Setting up net subsytems.
... (5 Replies)
Discussion started by: Corey
5 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone
I am currently exploring the different time keeping commands in linux. and I having a lot of trouble figuring out the advantages and disadvantages of using daytime command rdate and hwclock and such commands.
Can someone link me to good articles or just give me the answer (5 Replies)
Discussion started by: maniac173
5 Replies
3. UNIX for Dummies Questions & Answers
I've three partitions on /dev/sda: sda1, sda2 sda3. There is FREE space between sda2 and sda3 and sda3 ends on the last sector. sda2 and sda3 have the same number of sectors allocated and so are the exact same size.
/dev/sda2 is already part of the VG VolGroup. However, what puzzles me is that... (0 Replies)
Discussion started by: Devyn
0 Replies
4. Linux
hi all, im linux nubie n want to ask,
1. how to access the windows pc?
if from windows to windows, we can use :
start-run-\\192.168.1.1\e$
now, how about from linux (fedora) n want to access to windows drive?
if I use ssh from linux to windows,
ssh 192.168.6.171
ssh: connect... (6 Replies)
Discussion started by: busoh.sensen
6 Replies
5. UNIX for Dummies Questions & Answers
Hi
I accidentally installed another operating system after I had installed Linux and now I can no longer access your Linux system.any solution?
Thanks (1 Reply)
Discussion started by: adam25bc
1 Replies
6. Shell Programming and Scripting
Hi All,
Here is the problem: I have done a c++ code in Visual Studio 2010, it's a simple project that only have one main function which takes 2 parameters: an integer and a file that stores data. Now, I am asked to write a shell script in linux to execute my main function. I asked my professor... (1 Reply)
Discussion started by: EasonRU
1 Replies
7. UNIX for Advanced & Expert Users
OS: Oracle Enterprise Linux 6.2
Hypervisor: VMWare workstation 9
I created a VM and attached a 7gb virtual disk to it.
Using fdisk , I partioned the disk like below. The filesystems mounted on this is working fine. But I am seeing the message
Partition n does not end on cylinder boundary.... (2 Replies)
Discussion started by: kraljic
2 Replies
8. Linux
Hi All,
On linux system copied a /bin/kill to /bin/killlatest, when i tried to kill a command using /bin/killlatest it is failing with below errors
/bin/killlatest 12345
ERROR: no "killlatest" support.
Please help on this.. My ideas is to write a wrapper over killl command to find out who... (5 Replies)
Discussion started by: sridhar8183
5 Replies
9. UNIX for Dummies Questions & Answers
hello i am new to scripting and Linux in general. i am going to school for sys admin and i will need at least some knowledge on scripting. i have been so far ok with learning basic scripting now i am stuck. with a assignment that i was given it was create a script that will tell you if a number... (2 Replies)
Discussion started by: dragonwrench
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
First server every thing is working but keeps crashing so to be on the safe side created second server and moved all the files. But I notice there is a " dot " at the end. See below. Not sure what that means. Also getting 403 on Apache. Please see below. Thanks you so much.
ls -l... (4 Replies)
Discussion started by: samnyc
4 Replies
LEARN ABOUT REDHAT
oclock
OCLOCK(1) General Commands Manual OCLOCK(1)
NAME
oclock - round X clock
SYNOPSIS
oclock [-option ... ]
DESCRIPTION
Oclock simply displays the current time on an analog display.
OPTIONS
-fg color
choose a different color for the both hands and the jewel of the clock
-bg color
choose a different color for the background.
-jewel color
choose a different color for the jewel on the clock.
-minute color
choose a different color for the minute hand of the clock.
-hour color
choose a different color for the hour hand of the clock.
-backing { WhenMapped Always NotUseful }
selects an appropriate level of backing store.
-geometry geometry
define the initial window geometry; see X(7x).
-display display
specify the display to use; see X(7x).
-bd color
choose a different color for the window border.
-bw width
choose a different width for the window border. As the Clock widget changes its border around quite a bit, this is most usefully
set to zero.
-shape causes the clock to use the Shape extension to create an oval window. This is the default unless the shapeWindow resource is set
to false.
-noshape
causes the clock to not reshape itself and ancestors to exactly fit the outline of the clock.
-transparent
causes the clock to consist only of the jewel, the hands, and the border.
COLORS
If you would like your clock to be viewable in color, include the following in the #ifdef COLOR section you read with xrdb:
*customization: -color
This will cause oclock to pick up the colors in the app-defaults color customization file: /usr/X11R6/lib/X11/app-defaults/Clock-color.
Below are the default colors:
Clock*Background: grey
Clock*BorderColor: light blue
Clock*hour: yellow
Clock*jewel: yellow
Clock*minute: yellow
SEE ALSO
X(7x), X Toolkit documentation
AUTHOR
Keith Packard, MIT X Consortium
X Version 11 Release 6.6 OCLOCK(1)