-   Linux - Newbie (
-   -   Problems unzipping a *.tar.gz file --permission denied? (

mfarley 07-22-2003 03:13 PM

Problems unzipping a *.tar.gz file --permission denied?
I needed a program to allow me to create PDF Files. SO I downloaded bfograph and saved the download to my desktop in tar.gz format.

Using the terminal I did:


[mike@*****************]$ /home/mike/Desktop/bfograph-1.1.4.tar.gz
bash: /home/mike/Desktop/bfograph-1.1.4.tar.gz: Permission denied

So I then did CTRL+F1

telinit 1

And got the same problem! What am I doing worng?

RolledOat 07-22-2003 03:16 PM

You are trying to execute it?

cd /home/mike/Desktop
gunzip <tarfilename>
then cd into bfograph and follow the instructions.


Mathieu 07-22-2003 04:43 PM

To uncompress .tar.gz (or .tgz).

tar -zxvf file.tar.gz
To uncompress and redirect to another directory

tar -zxvf file.tar.gz -C /directory/some/where

RolledOat 07-22-2003 05:07 PM

Oops...good followup Mathieu...didn't see the tar.gz, just the .gz.
I used to gunzip first then
tar tvf to make sure that the person creating the tar actually
tarred up the dir. Nothing like getting 200 files dumped to your home directory because it wasn't the directory that was tarred, but just the individual files. :)
Hasn't happened in a couple of years though.


All times are GMT -5. The time now is 04:43 PM.