Difference between revisions of "Tips"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 5: Line 5:
 
= favorite Linux-Tools =
 
= favorite Linux-Tools =
 
  history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
 
  history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
 +
 +
= find out which files are accessed by a program =
 +
To find out which files are accessed by a program start it with
 +
strace -e open ''program''

Revision as of 13:46, 19 June 2010

renaming several files

Rename several files using the command

rename 's/BEFORE/AFTER/g' *

favorite Linux-Tools

history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10

find out which files are accessed by a program

To find out which files are accessed by a program start it with

strace -e open program