If you have multiple files which are in same format say csv, then you can navigate into the directory and issue the below command
This will zip all csv files into a zip file by name zip_file_name
i want know how to compress and uncompress file using unix,
compress uncompress,zip,unzip,rar,unrar,how its work and more about this.:confused: (1 Reply)
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Hi guys,
I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command:
zip foo -r
I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
I am trying to grab a folder and all the folders and files underneath it and send it from one computer to another. I basically want to compress the whole folder into a tar, tgz, or zip file so that it can be sent as one file. is there a command to compress a folder and all its contents into a tar... (7 Replies)
hi guys,
i've read that i need to use tar first before gzip. just wanted to be sure if there's no way of compressing a folder with all its files like winzip in windows?
using tar then gzip in unix, i will need to open 2 zip files in order to get the files unlike winzip.
i'd appreciate any... (2 Replies)
Hi all,
Hello everyone, my first post here :). I tried to search the forum but I didn't find exactly what I was looking for...
I need to zip/tar files across entire filesystem which are more 3+ years old but leave folder structure intact. If the script locates tar/zip files they are more... (1 Reply)
Hi,
Just want to know if anyone can suggest if there is a "better" way of coding the if-then-else block below:
ZIP=""
if ] ; then
ZIP=`which compress`
echo "ZIP program to use = ${ZIP}"
elif ] ; then
ZIP=`which gzip`
echo "ZIP program to use = ${ZIP}"
else
echo... (2 Replies)
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
LEARN ABOUT PHP
zip_entry_open
ZIP_ENTRY_OPEN(3) 1 ZIP_ENTRY_OPEN(3)zip_entry_open - Open a directory entry for readingSYNOPSIS
bool zip_entry_open (resource $zip, resource $zip_entry, [string $mode])
DESCRIPTION
Opens a directory entry in a zip file for reading.
PARAMETERS
o $zip
- A valid resource handle returned by zip_open(3).
o $zip_entry
- A directory entry returned by zip_read(3).
o $mode
- Any of the modes specified in the documentation of fopen(3).
Note
Currently, $mode is ignored and is always "rb". This is due to the fact that zip support in PHP is read only access.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
Note
Unlike fopen(3) and other similar functions, the return value of zip_entry_open(3) only indicates the result of the operation and
is not needed for reading or closing the directory entry.
SEE ALSO zip_entry_close(3), zip_entry_read(3).
PHP Documentation Group ZIP_ENTRY_OPEN(3)