answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you set time and date with Linux command line?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command is used to print the date and time in Linux?

date


What command displays the time on most Linux and Unix computer?

The time command is used to time a command and not display the actual time. To display the time and date, the date command must be used.


What is the date command used for in Linux?

If you use Linux its hard to get one anywhere else... All kidding aside, the date command is used to print the current date and time (such as day of week, month, day of month, time, timezone, and year).


How do you set the time on Red Hat Enterprise Linux?

With command date option -s


How do you get the current system time in Linux?

By issuing the date command. This will return something like:Wed Dec 9 10:55:20 EST 2009


How do you create a tar file from the command line?

in a linux machine : tar -cvf FileOrDirectory.tar FileOrDirectory # or to gzip it at the same time... tar -czvf FileOrDirectory.tgz FileOrDirectory


What command including options will take the system time and store in it in the hardware clock in Linux machine?

command is : hwclock --systohc First check and set the current system date and time. # date # date -s 'Wed May 28 11:35:00 EST 2003' Then sync your hardware clock with the system time. # hwclock --show # hwclock --systohc


Can you recover a root password in Linux?

No, none of the passwords used in a Linux system can be "recovered" because there isn't a reverse encryption for it. However, you can "reset" the root password by using the single-user mode at boot time (which puts you in the root account automatically) and then changing at that time.


What is the command to turn off Linux?

Virtually all Linux distributions will accept the "halt" command. Some also have a shutdown command, though this has additional parameters and is meant mainly to shut down the system at a certain time.


How do you set the date in Solaris?

The date and time are set in most Unix systems with the 'date' command. The exact syntax can vary, in which case you can find out by using the 'man date' command. Note: you have to be a root level user to issue this command to change the date or time.


What do you mean by sleep and wakeup in unix?

sleep is a unix command line program that suspends program execution for specified period of time.. syntax:- sleep time example:- sleep 10 date, time and wait are the related commands of sleep command...


Which command can be used to execute a series of Linux commands at a specified time?

You can schedule jobs using cron and the /etc/crontab file, or you can use the "at" command