Unix: find files or folder between modified date & delete

find all folder that modified in between the datetime

find /home/yours/ -newermt “20120101 00:01:00” -not -newermt “20170702 06:00:00”

find all folder that modified in between the datetime and delete

find /home/yours/ -newermt “20120101 00:01:00” -not -newermt “20170702 00:00:00” -exec rm -rf {} \;

Sort All folder by datetime descending / count all appearance

ls -lart | less
ls -1 | wc -l

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s