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 '"
Small comments on this website:Big femalism, small female feelings About "Country Rock":Some friends once joked that "what if she's an angel" is a "sitting" play, and "Any man of mine" can only be "standing ", and aroused the resonance of the
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
A command that provides help in a Linux system. In layman's terms it is the Manual of command.It's a total of nine chapters.1. User commands2. System call3. C Library Call4. Equipment files and special documents5. Configuration file format6. Games7.
1. The date of the command to display dates:Date May 24, 2015 Sunday 16:23:05 CSTDate +%y/%m/%d, 2015/05/24Date +%h:%m 16:262. Display the command CAL for the calendar:Cal,cal 2015,cal 3 20153. Calculator: BC:Scale=3 three digits after decimal
Use man date to view the details of the date command.[email protected]:~$ Man Date Date (1) User Commands Date (1) # Please note that above The number in parentheses is name . Copyright . There is NO WARRANTY, to the extent permitted by law. See
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
1.man page
Code
Content Description
NAME
Short instructions, data description
Synopsis
Brief introduction to the syntax of the instruction release
DESCRIPTION
A more
As just learning Linux friends, we get a command, do not know how to use, the general will first look at the command default parameter description, and then do not know is through the Man Command Access manual. Still can't find the method, on the
Date--helpUsage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date.-D,--date= string displays the time described by the specified string, not
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.