cp sovrascrivere

cp sovrascrive file/directory in Linux/Unix.

 

Il normale cp di solito sovrascrive i file e le directory di destinazione:

$ cp test.c bak

 

Per aggiungere un prompt interattivo prima di sovrascrivere usa l'opzione -i e premi 'y' per sovrascrivere:

$ cp -i test.c bak
cp: overwrite 'bak/test.c'? y

 

Per evitare la sovrascrittura utilizzare l'opzione -n:

$ cp -n test.c bak

 

Per sovrascrivere sempre senza richiesta:

$ \cp test.c bak

 

 


Guarda anche

Advertising

COMANDO CP
°• CmtoInchesConvert.com •°