Here are some interesting uses of the date command in Debian Linux by Mary M. Chaddock, GSEC, GCUX. She is a Network Security Administrator for Abilene Christian University in Texas. Thanks Mary for the nice email, and of course, the Debian date tip.
Mary said, "Specifically, I often have a need to convert log dates or search logs for specific dates when the log date is in epoch format."
Displays the current date
'date +%s'
Gives date two weeks ago
'date +%s --date=-2week'
Converts an epoch timestamp
'date --date=@1187103930'
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
1 comment:
Could not find viraltag post on your blog so posting comment here.
I have added u in my viral tag.
http://humor-in-photos-and-pictures.blogspot.com/2007/08/viraltag-link-exchange-program.html
Pls add me as 'Humor Pictures'
http://humor-in-photos-and-pictures.blogspot.com
Post a Comment