Common CentOS commands: bc, man, shutdown
This article mainly records the usage and meaning of some Linux commands, such as bc, man, and shutdown.
I. bc (a simple calculator in Linux)
In windows, a calculator tool is provided. We can use it for
Man
I don't know how to use the date command? Hey, hey! Don't worry, as long as "man date" is issued, there will be clear instructions in front of you:
[Root @ test root] # Man date
Date (1) FSF date (1)
Name
Date-print or set the system
Hwclock:function DescriptionDisplays and sets the hardware clock.GrammarHwclock[--adjust][--debug][--directisa][--hctosys][--show][--systohc][--test][--utc][--version][--set--date= date and time;]Additional InformationThe hardware clock is the clock
Reprint Please specify Source: http://blog.csdn.net/luotuo44/article/details/39374759This article mainly deals with Linux time types, time functions, and sleep functions provided by Linux.the time type and the corresponding function:time_t:The most
1. Adjust database server timeBecause the app shook a shake activity found out of date 15 minutes, but also can continue to shake, the problem is that the database server time than the application server time is quite 18 minutes, and the app is the
remark: article reproduced from: http://www.cnblogs.com/liuyou/archive/2012/07/29/2614338.html
Summary:
GMT/UTC/CST;
/etc/localtime,/usr/share/zoneinfo/* time zone file,/etc/profile plus TZ variable;
Hardware time RTC, system time;
Then you will say, how to check my hardware time is not UTC time?? Hwclock--localtime #如果上面这条命令的输出和UTC (GMT) time is the same, that's right, otherwise, look at the following. Some operating systems will be very silly hwclock and localtime (is m$
Introduction to clock and time in Linux 1) Introduction to the basic concepts of clock in Linux 2) exploring how the hwclock command works. 3) synchronization between the system clock and the hardware clock in Linux during system startup.
Summary:GMT/UTC/CST;/etc/localtime,/usr/share/zoneinfo/* time zone file,/etc/profile plus TZ variable;Hardware time RTC, system time; date,hwclock,tzselect;NTP relay SERVER;RPM–IVH ntp-*;ntpdate 0.uk.pool.ntp.org; Ntpq–p,watch
From the help documentation for the time module, it is found that the relevant functions are as follows: time () -- return current time in seconds since the epoch as a float clock () -- return CPU
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.