Using perl Command line
ls -1 | perl -n -e 'chop; print localtime( (stat($_)) ) . "\n";
The perl command processes each line of input (with -n option) and for each line, $_ is the input line. "chop" removes the newline character at the end of the line. "stat" retrieves the inode data from the filename (in $_). "localtime" will spit out the date/time of the file using the local timezone. (Use "gmtime" if you want it to ignore timezone settings.)
Log style date command
date '+ %b %e %T'
echo `date +"%Y-%m-%d"`
echo `date +"%Y-%m-%d_%H-%M-%S"`
You can use these for creating files names of backups.
Taken from following linkdate command
Another good date link
https://singztechmusings.wordpress.com/2011/07/11/ulimit-how-to-permanently-set-kernel-limits-in-linux/ app soft nofile 16384 * hard...
Question: Which of the following best describes a sprint? The correct answer was: A sprint is a condensed amount of time in which a devel...
Recently i was faced with a scenario where user would select a few files from a list and click download. All the downloads should start in...
import java.text.SimpleDateFormat ; import java.util.ArrayList ; import java.util.Date ; import org.apache.http.HttpResponse ; impo...