Tag Info

New answers tagged

0

In ext4 it is possible; because ext4 file-system store the file creation time. But still you will find that the stat command is unable to show the date, this is because I think the kernel is still not having any APIs for the same. Anyway the file birth time is stored in ext4 and you can find it out, although not a direct method, but using debugfs sudo ...


0

find /path/to/backups -type f -mtime +7 -maxdepth 1 -delete Your idea using exec could also be made to work, but you still need the path to the backup directory and your exec isn't quite right. It could be find /path/to/backups -type f -mtime +7 -maxdepth 1 -exec rm -f {} \; Also, I am not sure you need the -maxdepth option; are you worried about ...


1

You could use find /path/to/backups -type f -mtime +7 -maxdepth 1, this will find all files older than 7 days which you could then delete.


1

From the tcsh man page. excerpt history The first word indicates the number of history events to save. The optional second word (+) indicates the format in which history is printed; if not given, %h\t%T\t%R\n is used. The format sequences are described below under prompt; note the variable meaning of %R. Set to 100 by default. Example ...



Top 50 recent answers are included