In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
The editor will share with you the example analysis of date command knowledge points in Linux. I hope you will gain something after reading this article. Let's discuss it together.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Usage: date [option]. [+ format] or: date [- u |-- utc |-- universal] [MMDDhhmm [[CC] YY] [.ss]]
Displays the current time in the given format, or sets the system date.
The-dmoment color date = string displays the time described by the specified string instead of the current time
The date file is similar to date, which reads the time description by line from the date file.
-r,-- reference= file shows the last modification time of the file specified by the file
-R,-- rfc-2822 outputs date and time in RFC 2822 format
For example, Monday, August 7, 2006, 12:34:56-0600
-- rfc-3339=TIMESPEC outputs dates and times in RFC 3339 format.
TIMESPEC= `date', `seconds', or `ns'
Represents the display accuracy of the date and time.
The date and time units are separated by a single space:
2006-08-07 12:34:56-06:00
-s,-- set= string sets the specified string to separate the time
-u,-- utc,-- universal output or set the universal time for coordination
-- help displays this help and exits
-- version displays version information and exits
The given format FORMAT controls the output, and the interpretation sequence is as follows:
%% of a text%
% a the abbreviation of the week name of the current locale (for example: day, for Sunday)
% A full week name of current locale (e. G. Sunday)
% b the abbreviation of the month name of the current locale (for example: one, for January)
% B full month name of current locale (e.g. January)
% c date and time of the current locale (e.g., Thursday, March 3, 2005, 23:05:25)
% C Century; for example,% Y, usually omitting the last two digits of the current year (for example, 20)
% d monthly date (for example: 01)
% D monthly date; equal to% m/%d/%y
% e monthly date, add a space, equal to% _ d
% F full date format, equivalent to% Y-%m-%d
Last two digits of% g ISO-8601 format year (see% G)
% G ISO-8601 format year (see% V), generally used only with% V
% h equals% b
% H hours (00-23)
% I hours (00-12)
% j Annual date (001-366)
% k (0-23)
L (1-12)
% m month (01-12)
% M score (00-59)
% n line feeds
% N nanosecond (000000000-999999999)
% p the "morning" or "afternoon" under the current locale, the output is empty when unknown
% P is similar to% p, but outputs lowercase letters
% r 12-hour clock time under current locale (e.g. 11:11:04 afternoon)
Hours and minutes of% R 24-hour time, equivalent to% Hpurs% M.
Seconds that have elapsed since 00:00:00 UTC time 1970-01-01
% s seconds (00-60)
T output Tab Tab
T time, equal to H:%M:%S
% u week, 1 represents Monday
% U the week ordinal of the year, with Sunday as the first day of each week (00-53)
The week ordinal of the year under the% V ISO-8601 format specification, with Monday as the first day of each week (01-53)
% w the day of the week (0-6), 0 represents Monday
% W the week ordinal of the year, with Monday as the first day of each week (00-53)
% x date description under current locale (e.g. 12-31-99)
Time description under% X current locale (e.g. 23:13:48)
% y year last two digits (00-99)
% Y year
% z + hhmm numeric time zone (for example,-0400)
%: Z + hh:mm numeric time zone (for example,-04:00)
%:: Z + hh:mm:ss numeric time zone (for example,-04:00:00)
The%:: Z numeric time zone has the necessary precision (for example,-04 recording 05VR 30)
Time zone abbreviation for% Z sorted alphabetically (for example, EDT)
By default, the numeric area of the date is populated with 0.
The following optional tags can be followed by "%":
-(hyphen) does not populate the field
_ (underscore) filled with spaces
0 (the number 0) is filled with 0
^ use uppercase letters if possible
# if possible, use the opposite case
An optional field width is also allowed after any tag, which is a decimal number.
As an optional embellishment declaration, it can be E, where possible using the local environment associated
Representation; or O, where possible, using numeric symbols associated with the local environment.
After reading this article, I believe you have some understanding of "sample Analysis of date Command knowledge points in Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.