G'day all,
I just purchased some shares data which came on cd in a zip file.
When I try to copy the file from the cd I get a file input/output error.
This happens whether I use cp in a terminal or if I try to cut and paste on the desktop.
I have the following bash script:
tar -zxvf $1
cd $1
It should extract the archive file and enter the directory that was created. Typically, package archive file creates directory with the same name, as the file, without extension, for example, mpc-1.0.1.tar.gz creates mpc-1.0.1 directory. How can I change the line cd $1 to get directory name?
I have just installed Free Arc utility for compression from : http://www.freearc.org/Download.aspx
and it works smoothly but in command Line mode.
Commands:
a add files to archive
c add comment to archive
ch modify archive (recompress, encrypt and so on)
create create new archive
cw write archive comment to file
d delete files from archive
e
I have just uploaded tar.gz archive to my Centos server from my home Windows 7 computer. Before that, it was extracted from .zip archive.
When I try to extract it:
tar -xvf file.tar.gz
gunzip file.tar.gz
It always give me error:
"not in gzip format"
The archive is quite big, more than 100 MB.
I don't know, what's the problem. Could you help me please? Thanks.
Peter
Hi,
To Archive files, I try to move files from one directory to another directory . So i used the below logic,
Code:
#!/bin/ksh
****Archive*****
mv ${DATA_DIR}/ABC_.dat ${ARCHIVE}
So if i give the complete file name its working fine.
Say I have a file foo.tbz2 in a directory. I want to extract the tar file from the archive, but to a different directory. It seems like bunzip2 will only extract the archive to the same directory as the archive. Am I missing something?
This works, but I'm wondering if there is a better way:
cd /another/directory
bunzip2 -k -c /original/directory/foo.tbz2
Hi,
We have a shell script which looks into a directroy for any folder older than 30 days and removes them.
The archive manager does not archive files or games and gives the following error:
Archive: /media/BA/setup.exe
[/media/BA/setup.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.
I am trying extract .tar.gz file it but with no luck
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
the file tar.gz include another file.tar only which is has the issue
when i trying to extract .tar file i got
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverabl