My Personal Wiki

La théorie, c'est quand on sait tout et que rien ne fonctionne.... La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi.

Outils pour utilisateurs

Outils du site


linux:commande:shell:touch

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>

linux/commande/shell/touch.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki