Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
doc:veille:ligne_de_commande [2007/04/27 00:23] lehobey |
doc:veille:ligne_de_commande [2010/07/04 15:40] (Version actuelle) lehobey |
||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
===== date ===== | ===== date ===== | ||
* rfc-3339 ou iso-8601 http://natalian.org/archives/2006/03/22/ever-wondered-about/ | * rfc-3339 ou iso-8601 http://natalian.org/archives/2006/03/22/ever-wondered-about/ | ||
+ | * http://pstorralba.blogspot.com/2007/08/shell-date-and-time-tricks.html | ||
+ | * http://etbe.coker.com.au/2008/06/05/date-1970-01-01/ | ||
===== Fréquences des commandes dans l'historique ===== | ===== Fréquences des commandes dans l'historique ===== | ||
Ligne 12: | Ligne 14: | ||
===== Astuces ===== | ===== Astuces ===== | ||
+ | * Pour mémoire : http://feeds.feedburner.com/~r/UbuntuTutorials/~3/220537744/ | ||
* Exécutions en parallèle : http://cateee.blogspot.com/2006/10/shell-parallel-execution-with-timeouts.html | * Exécutions en parallèle : http://cateee.blogspot.com/2006/10/shell-parallel-execution-with-timeouts.html | ||
* Opération de type liste : http://www.lucas-nussbaum.net/blog/?p=217 | * Opération de type liste : http://www.lucas-nussbaum.net/blog/?p=217 | ||
+ | |||
+ | ==== À la GRML ==== | ||
+ | * http://michael-prokop.at/blog/2007/12/22/make-console-work-comfortable/ | ||
===== Gestion des contacts ===== | ===== Gestion des contacts ===== | ||
* http://www.linux.com/article.pl?sid=06/10/18/1333253 | * http://www.linux.com/article.pl?sid=06/10/18/1333253 | ||
+ | |||
===== Interpréteurs ===== | ===== Interpréteurs ===== | ||
* http://xana.scru.org/quanks/shelltees1.html | * http://xana.scru.org/quanks/shelltees1.html | ||
+ | |||
+ | * À bien utiliser : http://www.chris-lamb.co.uk/2007/10/09/top-10-interactive-shell-anti-patterns/ | ||
+ | |||
==== Bash ==== | ==== Bash ==== | ||
* http://www.lucas-nussbaum.net/blog/?p=238 | * http://www.lucas-nussbaum.net/blog/?p=238 | ||
+ | * http://www.enricozini.org/2008/tips/bash-tips.html | ||
+ | |||
+ | === Bonnes pratiques === | ||
+ | * http://blog.guillaume.lelarge.info/index.php/post/2007/10/05/Ecriture-dun-script-bash | ||
+ | |||
+ | === Complètement === | ||
+ | * http://alioth.debian.org/projects/bash-completion/ | ||
+ | |||
+ | === Gestionnaires de code source === | ||
+ | * http://glandium.org/blog/?p=170 | ||
+ | |||
+ | === Guide === | ||
+ | * http://tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html | ||
===== script ===== | ===== script ===== | ||
* http://www.hermann-uwe.de/blog/capturing-and-replaying-console-terminal-sessions-with-script-and-scriptreplay | * http://www.hermann-uwe.de/blog/capturing-and-replaying-console-terminal-sessions-with-script-and-scriptreplay | ||
+ | |||
+ | ===== Journaux ===== | ||
+ | * http://etbe.coker.com.au/2010/06/11/logging-shell-commands/ | ||
+ | * http://etbe.coker.com.au/2010/06/13/defense-in-depth-and-sudo/ | ||
===== sed ===== | ===== sed ===== | ||
Ligne 37: | Ligne 64: | ||
* http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1085538&admit=-682735245+1171318848267+28353475 | * http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1085538&admit=-682735245+1171318848267+28353475 | ||
+ | |||
+ | ===== tee ===== | ||
+ | * http://ubuntu.wordpress.com/2007/05/17/using-tee-to-write-to-files-and-the-terminal/ | ||
+ | |||
+ | ===== documentation Unix ===== | ||
+ | * http://linuxfr.org/2007/09/21/23125.html | ||
+ | |||
+ | ===== diff en couleurs ===== | ||
+ | * http://debaday.debian.net/2008/01/09/colordiff-put-some-color-in-your-diffs/ | ||
+ | |||
+ | ===== ulimit ===== | ||
+ | * http://etbe.coker.com.au/2008/02/07/linux-resource-controls/ | ||
+ | |||
+ | ===== processus dépendant d'une bibliothèque ===== | ||
+ | Merci David, François et Gilles. | ||
+ | |||
+ | Ici pour libpcre. | ||
+ | # for i in $(grep libpcre /proc/*/maps|cut -d '/' -f 3|uniq); do cat /proc/$i/cmdline; echo ; done | ||
+ | |||
+ | # lsof | grep libpcre | cut -d ' ' -f 1 | ||
+ | |||
+ | # grep libpcre /proc/*/maps|cut -d '/' -f 3|uniq | while read i ; do cat /proc/$i/cmdline; done | ||
+ | |||
+ | # lsof |grep libpcre | ||
+ | |||
+ | ===== dd ===== | ||
+ | * http://vince-debian.blogspot.com/2008/02/todays-dirty-command-line-trick.html | ||
+ | |||
+ | ===== echo ===== | ||
+ | * http://my.opera.com/atomo64/blog/show.dml/1830549 | ||
+ | |||
+ | ===== Barres de progression ===== | ||
+ | * http://blog.liw.fi/posts/progress-bars-everywhere/ | ||
+ | |||
+ | |||
+ | ===== safe-rm ===== | ||
+ | * http://feeding.cloud.geek.nz/2008/06/preventing-accidental-deletion-of.html | ||
+ | |||
+ | ===== Lire des pâtés ===== | ||
+ | * hexdump -C ... | ||
+ | * strings ... | ||
+ | |||
+ | ===== Nombre de processeurs ===== | ||
+ | * nproc : http://www.df7cb.de/blog/2010/nproc.html |