User Tools

Site Tools


shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
shell [2011/04/21 15:16] – [Debug] ginkoshell [2012/07/19 13:29] ginko
Line 3: Line 3:
  
   * [[http://www.commentcamarche.net/contents/linux/linshell.php3|Le shell sur CCM]]   * [[http://www.commentcamarche.net/contents/linux/linshell.php3|Le shell sur CCM]]
-  * [[http://penguin.dcs.bbk.ac.uk/academic/unix/linux/shells/index.php|AUtre article]]+  * [[http://penguin.dcs.bbk.ac.uk/academic/unix/linux/shells/index.php|Autre article]] 
 +  * [[http://cyberzoide.developpez.com/unix/shell.php3|Mémo pas mal fait]]
  
   * Shells:   * Shells:
Line 25: Line 26:
     * Windows:     * Windows:
       * cmd.exe       * cmd.exe
-      * mintty.exe (sur Cygwin)+      * [[mintty]].exe (sur Cygwin)
  
   * [[http://www.cygwin.com/faq/faq.using.html#faq.using.copy-and-paste|Astuce]] sur Cygwin   * [[http://www.cygwin.com/faq/faq.using.html#faq.using.copy-and-paste|Astuce]] sur Cygwin
Line 57: Line 58:
     * cd     * cd
     * pwd     * pwd
-    * find (advanced ls)+    * [[find]] (advanced ls)
     * m?locate (recherche via index)     * m?locate (recherche via index)
   * Manipulation fichier   * Manipulation fichier
Line 103: Line 104:
   * Réseau   * Réseau
     * Netcat (ouvrir des connexions réseau, "couteau-suisse du réseau", [[http://www.sweetnam.eu/index.php/Using_Netcat_for_Backup|exemple pour backup fichier]])     * Netcat (ouvrir des connexions réseau, "couteau-suisse du réseau", [[http://www.sweetnam.eu/index.php/Using_Netcat_for_Backup|exemple pour backup fichier]])
 +    * [[wget]]
 +    * curl
  
 ===== Astuces ===== ===== Astuces =====
Line 124: Line 127:
 set -xv set -xv
 exec 2> dump.txt 1>&2</code> exec 2> dump.txt 1>&2</code>
 +==== Lister les plus gros fichiers ====
 +<code bash>du -a /var | sort -n -r | head -n 10</code>
 +==== Calculs arythémtiques ====
 +<code bash>a=$(($b+$c))</code>
 +==== Manipuler le (x)term ====
 +<code bash># Set window title
 +echo -ne "\033]2;"$m"\007"
 +# In mintty, set the mapping for ANSI colors
 +echo -ne '\e]4;4;#4965D6\a' # blue</code>
 +
 +
shell.txt · Last modified: 2014/11/14 11:20 by ginko