How to , and other stuff about linux, photo, php … Another blog just like others on internet

September 25, 2015

Remove all files created before a certain date

Filed under: Linux — Tags: , , , , — admin @ 12:45 pm

What I want is to delete manually all e-mail that are before 01/01/2015

The command is
find /directory/path -type f ! -newermt 2015-01-01 -ls -exec rm -f {} \;

September 16, 2015

wrong date on xen vps

Filed under: Linux — Tags: , , , , — admin @ 2:03 pm

If you ever are on vps and try to change time and you see it wrong , you can try this also

echo 1 > /proc/sys/xen/independent_wallclock

After this set the clock again .
For me worked .

Powered by WordPress