Searching inside a lot of files in Linux

Hi all,
how many times you Linux newbies needed to search inside a lot of files, looking for a specified string?

This task is really useful, specially when debugging websites and php scripts.

So, this is the command you need:

find . | xargs grep 'string to search'

Let’s look at how it works:

find – it returns the name of files found inside the given directory, recursively looking inside sub-directories, one name per line.

grep – it strips a line of a given input and returns it when result matches

xargs – executes a command, passing to it the arguments read from the standard input.


Create a TAR archive of a directory

A common task in unix-like operating systems is creating an archive of many files or directories in a single file. The tar command is one option for archiving and has many options and can do many things.

In a simple example, you can create a file called archive.tar of all the files and subdirectories in the current directory with the following command:

tar cf archive.tar *

Note that this file is different from a zip archive commonly used in Windows environments because it is uncompressed.

You can also preserve permissions, owner and group by adding the p parameter.

betaBSD vs OpenBSD

Finalmente si notano i primi risultati del lavoro sul sistema betaBSD…

Il lavoro è ancora molto lungo e per ora l’unico risultato reale è una strana somiglianza tra il nostro rack e quello del sito ufficiale di OpenBSD 😀

La cosa è casuale e appena l’ho notata ho fatto una foto…


OpenBSD Server Rack (2009)
OpenBSD Server Rack (2009)
betaBSD Server Rack (now)
betaBSD Server Rack (now)


Per chi non conoscesse betaBSD, rimando al sito su sourceforge, attualmente l’unica pagina ufficiale anche se incompleta, che a breve sarà sostituita da un sito dedicato con hosting su

Hello Word!

Hi all,

I finally took a decision about this problem… YES! I’m opening a personal blog, hosted directly on a corporate server, thanks to BETA Technologies.

Because it’s a problem, nowadays,  not having a blog, can’t share a thought, a picture, anything.

So, today, I’m beginning to do what I always wanted to. You’re welcome to interact with me and leaving comments, ask for help … what you like.

Greating to you all,