====== Outils en ligne de commande ====== ===== date ===== * 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 ===== * http://blog.drinsama.de/erich/en/linux/debian/2006092301-meme-time * http://xana.scru.org/quanks/top10shellcmds.html * http://www.hermann-uwe.de/blog/the-top-ten-unix-shell-commands-you-use * http://kitenet.net/~joey/blog/entry/The_Top_Ten_Unix_Shell_Commands.html * http://amayita.livejournal.com/78828.html ===== 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 * 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 ===== * http://www.linux.com/article.pl?sid=06/10/18/1333253 ===== Interpréteurs ===== * 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 ==== * 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 ===== * 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 ===== * FAQ : http://www.faqs.org/faqs/editor-faq/sed/ * http://archives.neohapsis.com/archives/openbsd/2005-03/1248.html * Divers (autour de insérer avant) * http://www-128.ibm.com/developerworks/aix/library/au-textedit.html * http://www.daniweb.com/techtalkforums/thread54475.html * 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