- Linux: How do I set the time in the command line?
Linux: How do I set the time in the command line?
With the "date" command:
date -s 1103 for 11:03 AM
Don't forget to use 24-hour time:
date -s 1355 for 1:55 PM
You can also the date with this command.
Copyright © 2008-2022, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.