How to use zip command in AIX?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to use zip command in AIX?
# 1  
Old 07-08-2015
How to use zip command in AIX?

hi

i am not able to use zip command in aix.
getting below error
Code:
zip abc.zip
ksh: zip:  not found.

Code:
 oslevel 
5.3.0.0

# 2  
Old 07-09-2015
The command zip is not an AIX supplied command by default. You could use compress or install a GNU or other zip tool. There may be some on the other install media you received initially.

If you are looking for commercial strength, then PKWare have one but there are plenty of free ones I'm sure.

What are you planning to do with the file? WinZip will recognise a compressed tar file built like this:-
Code:
tar -cvf - . | compress > /path/my.tar.Z



Can you tell us more about the purpose of creating these files and what you plan to do with them, now or later?



Robin
# 3  
Old 07-09-2015
you can download it from the site IBM AIX Toolbox for Linux Applications - Alphabetical Listing and install with rpm -i if you have root rights
This User Gave Thanks to agent.kgb For This Post:
# 4  
Old 07-09-2015
hi Rbatte1

thanks for your reply.
i want to compress file with .zip extension
# 5  
Old 07-10-2015
Hello scriptor,

You can call a compressed file anything you like by renaming it from the .Z that is created by default.

The real question remains though: What do you want to do with the file? That is still more important than the name.
What is the purpose of the .zip file? Is it only to be extracted on AIX again or read elsewhere?



Robin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question regarding zip command

Hi, I wish to zip a folder with only those files which have ".properties" extension while excluding all other file extensions be it in the same folder or sub-folder. Can you help me with how can get that to work ? (1 Reply)
Discussion started by: mohtashims
1 Replies

2. Shell Programming and Scripting

Zip data using Command

HI Guys, I using below command to zip data but in zip file i have entire path of source. zip $HOME/EM/ZIPData/All.tar.gz /vr/rt/on/mg/set/XM/Swor/xt/0300*.* In Zip file i have entire path vr/rt/on/mg/set/XM/Swor/xt/ I just want file data zip in may target location (2 Replies)
Discussion started by: pareshkp
2 Replies

3. Shell Programming and Scripting

Zip Multiple files to One .zip file in AIX system

Hi I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want. One I do .zip file, I should be able to unzip in my local Computer. Here is example what I want... (9 Replies)
Discussion started by: RAMA PULI
9 Replies

4. Shell Programming and Scripting

Zip command not working

Hi, file.txt 1 2 3 4 5 zip command is not working in linux environment. zip file.zip file.txt (5 Replies)
Discussion started by: onesuri
5 Replies

5. AIX

How to zip file in AIX with password.

Hi Guru, I have assignment to create script to compress file as .ZIP with password. I don't know the command line in AIX. It's very new for me. I'm try to use zip or tar but I don't have any option for encrypt with password. Please kindly suggest me. Thank you very much. Multidev (7 Replies)
Discussion started by: multidev
7 Replies

6. UNIX for Dummies Questions & Answers

Problem with zip command..

Hi friends I am working in cygwin. Currently I am in root directory(C). I want to zip only the files from a diretory "A" to a new directory 1.zip in root directory C. I am using the following command: $: zip 1.zip A/* but it is zipping the entire directory itself, But what I want is when... (4 Replies)
Discussion started by: ks_reddy
4 Replies

7. UNIX for Dummies Questions & Answers

Zip command (zip folder doesn't include a folder of the same name)

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)
Discussion started by: elioncho
1 Replies

8. Shell Programming and Scripting

zip command

Hi All, I have the following requirement. Source file Products_Extract.dat contains <CTRL M > characters and hence is in DOS format. I zip this file using zip command in UNIX BOX as follows: find . -name Products_Extract.dat|zip Target.zip -@ Next I ftp (in Binary MODE) this output zip... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

9. UNIX for Dummies Questions & Answers

zip command

Hello, What is the appropriate command to zip a folder that contain sub folder and files? Example: Folder lunaa In the folder there are a number of folder e.g 01526, etc...which contains number of file. Any idea would be grateful. Many thanks (1 Reply)
Discussion started by: su_in99
1 Replies

10. AIX

URGENT: zip utility on AIX 5.x

Do you know where can I find the 'zip' binary utility for AIX 5.x ? I have the zip-2.3.0.0.bff file, but I don't have root access and I want to test the 'zip' utility. Thank you !!! (2 Replies)
Discussion started by: V3l0
2 Replies
Login or Register to Ask a Question