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:10] – [find: Exemples] 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 | ||
| |
informatique/linux/commandes_linux.1736158248.txt.gz · Last modified: 2025/01/06 10:10 by pteu