[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [HS] copier un fichier en incluant un chemin



bonjour,

J'ai eu besoin de faire ça il y a quelques jours, et j'ai trouvé ça:
find ./ -wholename *.config/autostart/init-xfce4.desktop -exec cp --parents \{\} /etc/skel/ \;

c'est probablement pas optimal du tout, mais ça a répondu à mon besoin pour mon action. :)

HTH,

Jerem
Le 17/10/2025 à 20:32, Pierre Estrem a écrit :
Bonsoir,

Dans /etc/skel je souhaite copier le fichier init-xfce4.desktop en incluant un chemin relatif (.config/autostart/).
Je devrais donc trouver  :
/etc/skel/.config/autostart/init-xfce4.desktop

Avecc cp ou rsync je n'y parviens pas.

Une unique commande bash fait-elle cela ???

Merci
--
Pierre Estrem




Reply to: