Update 08-11-2019

This commit is contained in:
2019-11-08 06:59:04 +01:00
parent 73cd251d7b
commit f6138f552b
5 changed files with 92 additions and 0 deletions

View File

@@ -49,6 +49,20 @@ find / -mtime +30 -print
find / -mtime 30 -print
```
```bash
find . -mtime +0 # find files modified greater than 24 hours ago
find . -mtime 0 # find files modified between now and 1 day ago (i.e., in the past 24 hours only)
find . -mtime -1 # find files modified less than 1 day ago (SAME AS -mtime 0)
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago
```
Rechercher <u>le plus vieux</u> fichier:
```bash
find / -type f -printf '%T+ %p\n' | sort | head -n 1
```
Recherche suivant la <u>taille</u>:
```bash