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 '"
One:Answers to the following questions in this article:
1.1) who will help you make this faq?1.2) when someone mentions 'rn (1) 'or 'ctime (3)', what does the number in the ARC mean?1.3) Why are some strange unix command names?1.4) How does the
One: This article answers to the following questions:
1.1 Who will help you to make this FAQ?
1.2 When someone mentions ' RN (1) ' or ' CTime (3) ', what does the number in the scraping mean?
1.3 What is the origin of some strange unix instruction
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
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
Man , info, help, date, Hwclock, Cal, shutdown, reboot, Halt, Poweroff, type, CD, which, DirName, BaseName, who, which, Whatis, Makewhatis, Echo, hash, TTY tac:cat display the file file in reverse order ...: View the format of the contents of the
use the shell in Linux to get yesterday, tomorrow or many days before the date time -- A- , the: -:xxblogjava-Expert Area Original http://www.blogjava.net/xzclog/archive/2015/12/08/428555.htmlTheme Shell Original address:
Elk cloner: the first computer virus. It will get all the stuff on your disk, and it will even penetrate into the chip. This is Cloner! It will stick you like glue, and it will modify the memory! DX}Computer viruses are the most famous member of a
Use the shell in Linux to get yesterday, tomorrow, or many days ago:In Linux, the man date-d parameter is relatively vague, the following examples further illustrate:#-D,--date=string display time described by STRING, not ' now '[Email protected]
First, how does Perl get
Copy Code code as follows:
#!/usr/bin/perl-w
Use POSIX QW (strftime);
My $day = strftime ("%y%m%d", LocalTime (time-24*3600)); #获取昨天的日期
Second, in Linux on the man date-d parameters of the
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.