How can I rename the .tar.gz file without extracting the contents and creating a new .tar.gz file in UBUNTU?

I have a command that will create a new .tar.gz

file from an existing one,

 sudo tar -zcvf Existing.tar.gz New.tar.gz

      

this command will create a new file New.tar.gz

from an existing file Existing.tar.gz

.

Can anyone tell me if there is a way to rename the deleted file without creating a new one?

Thank.

+3


source to share


1 answer


The easiest way is to simply rename ("move") the file:



mv Existing.tar.gz New.tar.gz

      

+4


source







All Articles