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/06/05 10:30] (current) – [chage] pteu | ||
---|---|---|---|
Line 294: | Line 294: | ||
Pour modifier la date d' | Pour modifier la date d' | ||
<code bash> | <code bash> | ||
- | chage -E YYYY-MM-DD < | + | chage -E YYYY-MM-DD < |
</ | </ | ||
+ | ou lancer l' | ||
+ | <code bash> | ||
+ | chage < | ||
+ | </ | ||
=====chattr/ | =====chattr/ | ||
Line 544: | Line 547: | ||
=====diff===== | =====diff===== | ||
- | diff permet d' | + | diff permet d' |
- | < | + | < |
cd /tmp ; echo " | cd /tmp ; echo " | ||
diff toto titi | diff toto titi | ||
Line 553: | Line 556: | ||
> 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 848: | ||
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