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 … Nettet12. sep. 2024 · Procedure to check file creation time in Linux Open the terminal and navigate to the directory where the file is located. Type ls -l and press Enter. This will …
linux - Find files older than X and Count them - Stack Overflow
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 … Nettet29. okt. 2024 · I am trying to monitor a directory for files older than 1 day. That worked fine until I was told that there will usually be a couple of files that are older than a day. offline spreadsheets free
linux - Find the age of the oldest file in one line - Unix & Linux ...
Nettet6. mar. 2024 · There are a few different ways to check the age of files in Linux. The most common way is to use the ls command with the -l flag. This will provide a listing of all … NettetYou can get the creation time from a file's metadata with stat FILE grep Change (run that on the oldest file listed by ls -lact). On other non-Linux systems, stat likely has that … NettetThe following command sequence looks for any files that are more than 20 years, 7300 days, old. Finding Files > 20 Years Old # cd / # cd /tmp # ls -ld orbit-root drwx------ 2 … offline stack overflow