zippare (o tarrare)

Inizio questa rubrica su linux con un comando interessante: come fare per creare un file compresso (tar.gz) di una cartella andando a prendere tutti i files presenti in quella cartella comprese le sottocartelle filtrando per un’estensione specifica:

[user@site folder]# tar -cvzf nomefile.tar.gz $(find -name “*.php”)
Questo articolo è stato pubblicato in Uncategorized. Includi tra i preferiti il permalink.

Lascia un Commento

Fill in your details below or click an icon to log in:

Gravatar
Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s