First, the phenomenon of failure
Business side Feedback Current Network A SuSE11 host is found to be unable to start properly after reboot, and the discovery host is unable to start properly after the set System time to the present hardware clock
Reprint: http://blog.gesha.net/archives/221/ Linux system time and hardware clock issues (date and Hwclock) summarize Hwclock, this is easy to faint:
1/etc/sysconfig/clock file, only valid for the Hwclock command, and only useful when the system
Guide
Time management skills in Linux machines, especially on production servers, are an extremely important aspect of system management, so here we will introduce the time management under Linux.
Linux contains a variety of time
The set command sets the parameter variables for the shell. The output of many commands is a space-delimited value, and using set is very effective if you want to use one of these data fields.
#!/bin/shecho the date is $ (date)Set $ (date)echo the
What is 20.1 shell?
The shell is the intermediate medium used when the system interacts with the computer hardware, and it is just a tool of the system.
In fact, he has a layer of things between the shell and the computer hardware-the
1. What is UNIX1) Mastering the definition of Unix: UNIX is a computer operating system, a control program used to coordinate, manage and control computer hardware and software resources. 2) Understand the features of the UNIX operating system:
The Linux time format largely follows the human habit, and the following are some common times.The date command itself provides the addition and subtraction of dates, which are used flexibly in shell programming.Common time:Monday (Mon)
Time to modify Linux can use the date directiveThe function of the date command is to display and set the system date and time.Enter date to view the current system time.Modify time requires date-Functional character modified contentThe meanings of
Tag: Date command displays case false cmd put who bar inputShell Exercise: Write a script to do the following: Enter a number, and then run the corresponding command. The command is displayed as follows: *cmd meau** 1--date 2--ls 3--who 4--pwd When
Time to modify Linux can use the date directiveThe function of the date command is to display and set the system date and time.Enter date to view the current system time.Modify time requires date-Functional character modified contentThe meanings of
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
"LVM"
What is LVM?
LVM (Logical Volume Manager) Logical volume management, is a partition of one or more hard disks in a logical collection, equivalent to a large hard disk to use, when the hard disk space is not enough to use, you can
1. In the following network protocol, the connection-oriented protocol is: A.A Transmission Protocol B User Datagram Protocol C Internet Protocol D Inter-network Control Message Protocol2. In the file system load parameters specified in
ls command:
Ls-1: Displays the files in this directory in one line
Ls-a: Show hidden files
LS/: View something under the root path
Ls-r/: Recursively view all content under the root path
Ls-s: Display size
Ls-alsh: Show
Anyone who has installed a Linux system may have the experience that the machine has the right time to install the Windows system, but when the Linux system is installed, the system time is incorrect, even if the time zone is selected correctly.
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,
Linux Shell gets time and time interval (MS level)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
"13.1" What is shell script.
1 shell script is a "program" written using the function of the shell, which uses a text file to write some shell syntax and commands (including external commands) inside, with regular representations, pipeline
Local Test Cases:
# there can be no spaces on either side of the equal sign, before the error has been out here
yesterday= ' date-d last-day +%y-%m-%d '
echo $yesterday
curday= ' Date +%y-%m-%d '
echo $curday
echo "Now time: ' Date ' +%y%m%d%T '"
Docker container time is inconsistent with host time
Viewing time through the date command
View host Time
[root@localhost ~]# Date
July 27, 2016 Wednesday 22:42:44 CST
View Container Time
root@b43340ecf5ef:/#date
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.