With zero
root@li60:~/security# date --date "1 day ago" "+%b %d"
Mar 01
Without zero
root@li60:~/security# date --date "1 day ago" "+%b %-d"
Mar 1
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
Disk is out of space [root@reyotest stat]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 231825...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
You can find more examples on date command at:
ReplyDeleteDate command examples in linux