NettetUnder Linux, the following command prints the age of a file: echo $(($(date +%s) - $(date +%s -r "$filename"))) seconds echo $((($(date +%s) - $(date +%s -r "$filename")) / 86400)) days Under Linux, you can use stat -c %Y -- "$filename" as a synonym of … Nettet8. jun. 2009 · Combined with the bash shell math operator working out the age of the file becomes quite easy: age=$ (stat -c %Y $file) now=$ (date +"%s") if ( ( (now - age) > …
How to verify an ISO in Linux - techPiezo
Nettet8. mai 2013 · Age of file in storage / disk Hello all, Below is scripts to find the file following by: 30 days <- How many total file space within 30 days and not quantity 90 days 120 … NettetYou can print file size with find using the -printf option, but you still need awk to sum. For example, total size of all files older than 365 days: find . -type f -mtime +356 -printf … total drama sky belly deviantart gif
File age monitor Paessler Knowledge Base
Nettet4. apr. 2024 · I want to find the age of the oldest file in a certain directory or return 0 if there aren't any files in this directory. I also need a one-line command doing it. So far … Nettet26. okt. 2015 · Basically, I'm looking for the age of the process, not exactly when it was started. My first approach would be to compare the start_time of the process being … NettetName : monitoring-plugins-file_age Version : 2.3.1-5.1 Arch : x86_64 Vendor : openSUSE Installed Size : 5,0 KiB Installed : No Status : not installed Source package : monitoring … total drama outhouse