Giuseppe’s Weblog

Just another WordPress.com weblog

Comandi Shell Utili

lascia un commento »

Rimuovere i file piu’ vecchi di una certa data:

cancellare i file piu’ vecchi di 7 giorni

/usr/bin/find /spare2/SVNback -name "backupSVN*.tar.bz" -mtime +7 -exec /bin/rm {} \;

Creare un file con una particolare data:

touch -t time nome_file (dove time e’ nel formato MMDDhhmm)

crea un file con data 20 Gennaio 12:00

touch -t 01201200 file.txt

Scritto da gfiorito

febbraio 5, 2010 a 4:14 pm

Pubblicato in HowTo, Linux

Lascia un Commento

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

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

Follow

Get every new post delivered to your Inbox.