informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:linux:commandes_linux [2020/01/08 10:50] – [type] pteu | informatique:linux:commandes_linux [2020/02/04 14:27] – [history] pteu | ||
---|---|---|---|
Line 986: | Line 986: | ||
=====history===== | =====history===== | ||
- | Permet d' | + | Permet d' |
<code bash> | <code bash> | ||
history | history | ||
Line 996: | Line 996: | ||
| | ||
</ | </ | ||
+ | |||
+ | Lors de la fermeture de session, cette liste est ajoutée au fichier indiqué dans la variable '' | ||
+ | * le format de timestamp de chaque commande avec la variable '' | ||
+ | * la taille de l' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | Exemple : | ||
+ | <file bash .bashrc> | ||
+ | HISTCONTROL=ignoredups: | ||
+ | HISTTIMEFORMAT=" | ||
+ | HISTSIZE=10000 | ||
+ | HISTFILESIZE=20000 | ||
+ | </ | ||
On peut relancer une commande de l' | On peut relancer une commande de l' | ||
Line 1018: | Line 1032: | ||
</ | </ | ||
- | On efface l' | + | On efface l' |
On peut loguer (dans ''/ | On peut loguer (dans ''/ | ||
Line 2455: | Line 2469: | ||
</ | </ | ||
- | On peut filtrer le résultat par type d' | + | On peut filtrer le résultat par type d' |
<code bash> | <code bash> | ||
+ | # N' | ||
$ stat -c " | $ stat -c " | ||
2018-08-30 18: | 2018-08-30 18: | ||
+ | |||
+ | # Afficher la taille du fichier (ici il est vide) | ||
+ | $ stat -c " | ||
+ | 0 | ||
</ | </ | ||
informatique/linux/commandes_linux.txt · Last modified: 2024/04/05 06:58 by pteu