Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
php-bash:aide-memoire [2019/06/04 10:58] – [Crontab USER] cyrille | php-bash:aide-memoire [2019/06/05 11:17] – [Modifier la date des fichiers Récursif] cyrille | ||
---|---|---|---|
Ligne 413: | Ligne 413: | ||
Voir aussi [[https:// | Voir aussi [[https:// | ||
+ | |||
+ | ===== Modifier la date des fichiers Récursif ===== | ||
+ | |||
+ | <code bash> | ||
+ | avec [u][b]date/ | ||
+ | |||
+ | __**En pratique**__ | ||
+ | Création d'un répetoire à plusieurs niveaux et fichiers de test | ||
+ | <code bash> | ||
+ | ragnarok@Fenrir: | ||
+ | |||
+ | On regarde les dates | ||
+ | <code bash> | ||
+ | date/: | ||
+ | total 4 | ||
+ | drwxr-xr-x 2 ragnarok ragnarok 4096 juin 5 10:33 sousdate | ||
+ | -rw-r--r-- 1 ragnarok ragnarok | ||
+ | -rw-r--r-- 1 ragnarok ragnarok | ||
+ | |||
+ | date/ | ||
+ | total 0 | ||
+ | -rw-r--r-- 1 ragnarok ragnarok 0 juin 5 10:33 test3 | ||
+ | -rw-r--r-- 1 ragnarok ragnarok 0 juin 5 10:33 test4</ | ||
+ | |||
+ | On les avances de 2 jours | ||
+ | <code bash> | ||
+ | |||
+ | On vérifie | ||
+ | <code bash> | ||
+ | date/: | ||
+ | total 4 | ||
+ | drwxr-xr-x 2 ragnarok ragnarok 4096 juin | ||
+ | -rw-r--r-- 1 ragnarok ragnarok | ||
+ | -rw-r--r-- 1 ragnarok ragnarok | ||
+ | |||
+ | date/ | ||
+ | total 0 | ||
+ | -rw-r--r-- 1 ragnarok ragnarok 0 juin | ||
+ | -rw-r--r-- 1 ragnarok ragnarok 0 juin | ||
+ | |||
+ | C'est OK | ||
+ | |||
+ | __**Note**__ | ||
+ | <code bash> | ||
+ | |||
+ | <code bash>-a = accessed | ||
+ | -m = modified | ||
+ | -t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format | ||
+ | </ | ||
+ | |||