mercoledì 14 ottobre 2009

Search inside files

In order to search for a specific text pattern inside every file in every subdirectory of a given path in linux you can do:

grep -r "text_2_search" *

"-r" stands for "recursive."
Note that with "zgrep" util you can search recursively inside a .zip or .tar.gz file.

Linux resize screen resolution with xrandr

You can quickly resize the screen resolution using "xrandr" utility (/usr/bin/xrandr).

with xrandr -q you can see all the available resolutions

Input xrandr -s (size) to dynamically resize screen; for example:

xrandr -s 1440x900