User Tools

Site Tools


bash

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
bash [2013/07/18 10:34] – [Astuces] ginkobash [2014/05/27 11:02] (current) – [Cheat Sheet] ginko
Line 4: Line 4:
   * [[http://eriwen.com/bash/effective-shorthand/|Utiliser efficacement bash]]   * [[http://eriwen.com/bash/effective-shorthand/|Utiliser efficacement bash]]
 ====== Cheat Sheet ====== ====== Cheat Sheet ======
 +  * [[bash_cheatsheet|Bash parameters & history cheatsheet]]
 ===== Shebang ===== ===== Shebang =====
 <code bash>#!/bin/bash</code> <code bash>#!/bin/bash</code>
Line 125: Line 126:
   * <code bash>#Backup a USB Key   * <code bash>#Backup a USB Key
 # To list partitions: fdisk -l (with root privilegies) # To list partitions: fdisk -l (with root privilegies)
-dd if=/dev/sdc1 of=/home/ginko/usb4go_bak.iso bs=16065b</code>+dd if=/dev/sdc1 of=/home/user/usb4go_bak.iso bs=16065b</code> 
 +===== Useful ===== 
 +  * Convertir les html entities dans les noms de fichier (ex. : ''%20'' en ''_'') : <code bash>for f in $(ls -1); do mv $f ${f//%20/_} ; done</code> 
 + 
  
bash.1374136452.txt.gz · Last modified: 2013/07/18 10:34 by ginko