This article goes from "It learner" http://www.t086.com/article/4386Time to modify Linux can use the date directiveDate Modified:The order of the time set to May 10, 2009 is as follows:#date-S 05/10/2009Modification Time:The command to set the
Here we introduce the common Basic command one, log off shutdown restart logoff system logout Command 1Logout logoff is the relative operation of the landing system to leave the system users as long as the direct release of the logout command:
In Linux, the time is divided into two types: 1; Use the date command to display the system time, 2 to display hardware time using clock or HwclockThe system time and hardware time will appear out of sync.Man Command =manual= command manualHere's
Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day
[Email protected] ~]# mkdir scripts; CD scripts[Email protected] scripts]# VI sh01.sh#!/bin/bash declaring shell names# program: Description of Procedure Content# This program shows the "Hello world!" in the Your screen.# History:# 2005/08/23 Vbird
Linux System Task Scheduler/etc/crontab Cron Master configuration file, you can define pathThe cron format is as follows:#.----------------minutes (0-59)# |.-------------hours (0-23)# | |.----------Day (1-31)# | | |.-------month (1-12)# | | |
#man date to see the Help file for date#date Get the current time#date-D " -1week" +%y%m%d get last Sunday issue (Day,month,year,hour)#date--date= " -24 hour" +%y%m%d Ibid.date_now= ' date+%s ' shell script to assign variable valuesPercent output%
Because today the company matters more, today basic no self-study. Learn about the type command: mainly commands that display command types. Linux commands are divided into two types: built-in commands and external commands. Built-in commands for
Date Modified:The order of the time set to May 10, 2009 is as follows:#date-S 05/10/2009Modification Time:The command to set the system time to 10:18 A.M. 0 seconds is as follows.#date-S 10:18:00To modify the time zone:Locate the appropriate time
The time to modify Linux can be modified by using the Date Directive: The command for the time set to May 10, 2009 is as follows: #date-S 05/10/2009 modified: The command to set the system time to 10:18 A.M. 0 seconds is as follows. #date-S 10:18:00
This is the problem I encountered in the cluster Web system (4 Web servers in different times, resulting in uneven distribution of the system), here I also make the intranet Ntpdate time synchronization server, The old difference is 8 hours in sync.
1. IntroductionThere are two clocks of hardware clock and system clock in Linux. The hardware clock is the clock device on the motherboard, which is usually the clock that can be set on the BIOS screen. This time there is battery-powered maintenance
Today, the company suddenly has to take all the test environment root password back, only the normal user rights issued. Because the test environment to often change time to test, Linux under the ordinary user no modification time permissions.
The anti-quote bit (') is located above the TAB key of the keyboard, to the left of the 1 key. Note the difference between the single quotation mark (') on the left side of the ENTER key.Anti-quote bit (') plays the role of command substitution in
It is often necessary to test performance in Linux endpoints, such as Flash read and write performance. This requires the timing of an operation.The results were obtained by using the date command and then manually subtracting.Simple measurement is
Linux system modification system time and time zoneListen to the Voice
|
Browse:45167
|
Updated: 2014-06-18 19:36
|
Tags:linux
1
2
3
4
5
6
7
Step through the master of a
In the Linux environment, whether it is programming or other maintenance, time is essential, but also often use the time of the operation, skilled use of the date command to express the time you want to express, certainly can give their work to
Two steps
(1) Date 042612492005
(2) Hwclock-w
The first step is to set the time, you can use the Date command to view the right ... Note that it is the year of the month
The second step means the RTC chip that is written to the motherboard.
====
When using the CentOS system, you may encounter an English CentOS system when you install it, in which case installing the CentOS system is the default installation (ie English). After installation, the emergence of a variety of Chinese garbled. So,
How to modify Linux system time Ubuntu
Two-step (1) Date 102718362009(2) Hwclock-wThe first step is to set the time, you can use the Date command to view the right ... Note that it is the year of the monthThe second step means the RTC chip that is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.