User Tools

Site Tools


linuxsnippets

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
linuxsnippets [2008/06/17 22:02] 86.39.105.13linuxsnippets [2012/08/15 16:21] (current) – ssh tunnel 91.64.56.15
Line 30: Line 30:
 </code> </code>
  
 +===== Export local webserver to public server =====
 +
 +  ssh andi@gaz.splitbrain.org -R *:8888:localhost:80
 ===== Show humanreadable date from timestamp ===== ===== Show humanreadable date from timestamp =====
  
Line 71: Line 74:
 find . | xargs grep 'string'  find . | xargs grep 'string' 
 </code> </code>
 +
 +Or if you don't need the flexibility of find:
 +
 +<code>
 +grep -R "string" *
 +</code>
 +
 +(-R for recursive; the star as a file matching pattern)
linuxsnippets.txt · Last modified: 2012/08/15 16:21 by 91.64.56.15