LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems unzipping a *.tar.gz file --permission denied? (https://www.linuxquestions.org/questions/linux-newbie-8/problems-unzipping-a-%2A-tar-gz-file-permission-denied-74951/)

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:

Code:

[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
/home/mike/Desktop/bfograph-1.1.4.tar.gz

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.

RO

Mathieu 07-22-2003 04:43 PM

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

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

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.

RO


All times are GMT -5. The time now is 07:23 AM.