Tuesday, May 20, 2008

Tar compress a folder

Today I wanted to try again to get Ubuntu Hardy on my desktop. As I have many multipboot files/folders here, I thought it best to make a .tgz of my /boot folder rather than picking everything I needed individually.
Here's the command I used:

sudo tar -cvzpf boot.tgz /boot

Seemed to work fine. Note that you need the sudo otherwise you'll get permission errors.
I'll insert an edit later to say how it the untar went.

Edit(20/05/2007)
OK, did the untar and that seemed to go fine as well.
The command I used was just
sudo tar zxvf boot.tgz

Agian, the sudo is necessary to avoid permission problems.

No comments:

Post a Comment