1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:02:09 +02:00
tldr/pages.ca/common/touch.md
Managor a70b923d8f
*: add option placeholders to translations (#15933)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-19 00:36:34 +02:00

667 B

touch

Canvia els temps d'accés i modificació d'un fitxer (atime, ntime). Més informació: https://manned.org/touch.

  • Crea un o múltiples fitxers o canvia els temps al temps actual:

touch {{camí/al/fitxer}}

  • Estableix el temps d'un fitxer a una data i hora específica:

touch -t {{YYYYMMDDHHMM.SS}} {{camí/al/fitxer}}

  • Estableix el temps en un fitxer a fa una hora:

touch {{[-d|--date]}} "{{-1 hour}}" {{camí/al/fitxer}}

  • Fa servir el temps d'un fitxer per establir el temps d'un segons fitxer:

touch {{[-r|--reference]}} {{camí/al/fitxer1}} {{camí/al/fitxer2}}

  • Crea múltiples fitxers:

touch {{camí/al/fitxer{1,2,3}.txt}}