informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatique:linux:commandes_linux [2025/01/06 10:09] – [find] pteu | informatique:linux:commandes_linux [2025/04/25 07:57] (current) – [diff] ignore option pteu | ||
---|---|---|---|
Line 544: | Line 544: | ||
=====diff===== | =====diff===== | ||
- | diff permet d' | + | diff permet d' |
- | < | + | < |
cd /tmp ; echo " | cd /tmp ; echo " | ||
diff toto titi | diff toto titi | ||
Line 553: | Line 553: | ||
> titi | > titi | ||
</ | </ | ||
+ | |||
+ | On peut ignorer des motifs avec l' | ||
Un patchfile c'est un fichier qui contient la sortie d'un diff : | Un patchfile c'est un fichier qui contient la sortie d'un diff : | ||
- | < | + | < |
diff -u toto titi > toto_titi.patch | diff -u toto titi > toto_titi.patch | ||
</ | </ | ||
Pour patcher toto avec les modifications de titi on utilise la commande **patch** avec le patchfile : | Pour patcher toto avec les modifications de titi on utilise la commande **patch** avec le patchfile : | ||
- | < | + | < |
patch -b toto toto_titi.patch | patch -b toto toto_titi.patch | ||
| | ||
Line 843: | Line 845: | ||
find . -regextype posix-egrep -iregex ' | find . -regextype posix-egrep -iregex ' | ||
- | # supprimer toutes ces maudites miniatures Windows : | + | # afficher puis supprimer |
- | find . -name Thumbs.db -exec rm {} \; | + | find . -name Thumbs.db |
# attribuer des permissions à tous les sous-répertoires contenus dans le répertoire pics : | # attribuer des permissions à tous les sous-répertoires contenus dans le répertoire pics : |
informatique/linux/commandes_linux.1736158140.txt.gz · Last modified: 2025/01/06 10:09 by pteu