On Sun, Sep 27, 2015 at 09:53:14PM +0100, Richard W.M. Jones wrote:
# find /var/log -type f -print0 | xargs -0 stat -c '%Y %n'
/var/log | sort -nr | head -1
A stray "/var/log" crept in there (but doesn't change the output).
The correct command should be:
# find /var/log -type f -print0 | xargs -0 stat -c '%Y %n' | sort -nr | head -1
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/