Table des matières

La commande touch


Création de ficher(s)

Pour la création d'un fichier:

touch <mon_fichier>

Pour la création de plusieurs fichiers:

touch <Mon_fichier1> <mon fichier2>

Pour créer plusieurs fichiers indexés:

touch mon_fichier{1..10}

Modifier l'horodatage

Modifier horodatage avec une valeur défini:
ex: pour le 15 Août 2023 à 12h54.

touch -t 202308151254 mon_fichier

Modifier la date de modification

Modifier à la date courante du moment:

touch -m <mon_fichier>

Modifier par une date spécifique

touch -mt <timestamp> <fmon_Fichier>

Modifier la date d'accès

Modifier à la date courante:

touch -a <mon_Fichier>