1. Modify the system time the Linux system clock has two, one is the hardware clock, that is, the BIOS time, is the time we see in the CMOS setting, the other is the system clock, is the Linux system kernel time. When Linux starts, the system
Cal Command: Date display
Cat/proc/meminfo: Memory usage Query
Free command: Memory detail Query
Arch command: CPU architecture displayDisplays the architecture of the current system, for example:#archx86_64
CAT/PROC/CPUINFO:CPU
Shutdown shuts down the system in a safe way.(1) Usage:usage: shutdown [parameter] [TIME](2) Function:function: system shutdown command, shutdown instruction can close all programs, and according to the needs of users, to restart or shutdown action,
The 2,date command is used to display, set the system's time or date, in the following format: date[option][+ specify format].The detailed format for date is as follows:
Date command Format
Parameters
Role
%
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
Note: While performing some performance testing, sometimes we want to calculate the time a program runs, and sometimes it is possible to write a shell script to facilitate some performance test control (such as the wish to run an average of n times,
There are two times on Linux today, one is Linux, the other is BIOS time (real hardware recording time)! We can use the date command to manually fix the current host time, but the date command only corrects Linux time, and we also need to update the
Time 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 system time to 10:18 A.M. 0 seconds is as follows.#date-S 10:18:00To
There are two times in a Linux system, hardware clock and system time, the hardware clock refers to the clock device on the motherboard, which is usually the clock that can be set on the BIOS screen. The system clock refers to the clock in the
Time 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 system time to 10:18 A.M. 0 seconds is as follows.#date-S 10:18:00To
First, the shell operation date TimeThe Linux system provides us with a command date that is designed to display or set the date and time of the system.The syntax format is:Date [OPTION] ... [+format] orDate [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.
When we installed a new CentOS system in the virtual machine, although in the installation of the NTP set up the selection of Shanghai, but entered the system, enter the date command, check the system time and the current time is not the same, we
When the shell script executes, the shell interprets the lines in the script and executes them;For some specially processed sentences, we can use quotation marks or backslashes to prevent the shell from interpreting the execution.As below, when you
If we use the U.S. VPS Host Station we will find some VPS, some sites submitted time and we are different, the adoption of the United States time, rather than the Beijing time we need, this problem is mainly due to the current VPS system time zone
When compiling kernel, some warning messages are found as follows: Warning:clock skew detected. Your build is incomplete. The reason for this is that the current system's time is also before the last modification time of the files in the compiled
First, we need to understand a few concepts:
1. "System time" and "Hardware Time"
System time: Typically the time we see the date command, all the time calls (except for direct access to the hardware time) in the Linux system are used this time.
Program | control | Calendar dates are one of the most basic forms of data, so many languages or databases provide support for dates, or libraries that are built into or provided with this type. Java is no exception; the Java application programming
Today, with VMware installation CentOS 5.5 Run all the way, found that Chinese are all small boxes, special to record:1. Download Chinese font pack first1 #yum Install Fonts-chinese.noarch2 # Yum Install Fonts-iso8859-2.noarch2. Modify
Date command Arguments
-d,–date=string Displays the time specified by STRING-f,–file=datefile A similar –date parameter to display the time per line in a Datefile file-itimespec,–iso-8601[=timespec] Displays the date/time in ISO 8601 format.
1. Date Order
The function of the date command is to display and set the system date and time.The general format for this command is: date [options] Displays the time format (beginning with +, followed by formatting)Date set time formatThe meanings
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.