ZIp UNIX file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ZIp UNIX file
# 1  
Old 07-23-2014
ZIp UNIX file

Hi Everyone,

I'm trying to Zip my files by using below command-
Code:
zip Monthly_Extract_Trailer.zip Monthly_Extract_Trailer

but it is giving me error message as -
Code:
su: zip:  not found.


Why it is coming?
Moderator's Comments:
Mod Comment Please use CODE tags (as required by forum rules) rather than bold text for sample input, output, and code.
I also removed what seemed to be an extraneous set of square brackets around your code and diagnostic output.

Last edited by Don Cragun; 07-23-2014 at 05:25 AM.. Reason: Change B tags to CODE tags; remove "["s and "]"s.
# 2  
Old 07-23-2014
What OS are you using?

What shell are you using?
# 3  
Old 07-23-2014
I'm using Unix server. And my using command ps -p $$ Im getting below result-


Code:
   PID TTY       TIME COMMAND
 23955 pts/3     0:00 sh


Last edited by Don Cragun; 07-23-2014 at 06:27 AM.. Reason: Add CODE and ICODE tags again.
# 4  
Old 07-23-2014
RUn and paste the output of the below commands

uname -a

echo $0
# 5  
Old 07-23-2014
$ uname -a
Code:
 
HP-UX qhud5028 B.11.23 U ia64 1711109840 unlimited-user license

$ echo $0
Code:
 
-sh

# 6  
Old 07-23-2014
By default, there is no zip on HP-UX.

Use gzip instead.
This User Gave Thanks to prvnrk For This Post:
# 7  
Old 07-23-2014
Are you sure about this?
Because i have to give expanantion to my client about this. They specifically mention to send file in .zip format. Smilie

---------- Post updated at 04:49 PM ---------- Previous update was at 03:42 PM ----------

As you said- By default HP-UX doesn't support ZIP command, is there is any utitilty that i can install in unix sever by which I can use zip command?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies

2. UNIX for Beginners Questions & Answers

How can we Zip multiple files created on the same date into one single zip file.?

Hi all i am very new to shell scripting and need some help from you to learn 1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder. 2)Post zipping... (2 Replies)
Discussion started by: b.saipriyanka
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. UNIX for Dummies Questions & Answers

Move a .zip file to a unix system in .rar format

Hi all, need help here in moving a .zip file into a suse system and want it to be in .rar format. How can i do this? (1 Reply)
Discussion started by: mena
1 Replies

5. AIX

ZIP multiple files and also specify size of zip file

I have to zip many pdf files and the size of zip file must not exceed 200 MB. When size is more than 200 MB then multiple zip files needs to be created. How we can achieve this in UNIX? I have tried ZIP utility but it takes a lot of time when we add individual pdfs by looping through a... (1 Reply)
Discussion started by: tom007
1 Replies

6. Shell Programming and Scripting

unzip .zip file in unix

Hi friends, I have a .zip file which has 6 pdf files. I have ftp'd the .zip file into unix and I am trying to uncompress/unzip the file. Could you please help with the right command. Thanks (7 Replies)
Discussion started by: techmoris
7 Replies

7. UNIX for Advanced & Expert Users

how to unzip 17GB .zip file on UNIX?

I have a .zip file of size 17GB on Linux. As per my knowledge unzip(before 6.X version) doesn't work with file size greater than 4GB. I tried my best to uncompress it but didn't successed. Can anybody help me out with this? Any help will be greatly appreciated. Thank you. Regards, Chandu (2 Replies)
Discussion started by: chance04
2 Replies

8. UNIX for Dummies Questions & Answers

Open .zip file created in UNIX

Hi I am using the unix zip command to zip a file name to name .zip. I am then ftping the file to my windows Xp desktop and trying to open it using compressed(zipped) folders. Then iam getting an error like 'the compressed(zipped) folder is invalid or corrupted' Please advice. regards,... (5 Replies)
Discussion started by: sam99
5 Replies

9. UNIX for Dummies Questions & Answers

Unix command to veiw a zip file

Hello, Is there a unix command to view the following zip file? I just need to see the content of it. -rw-r--r-- 1 oracle dba 58403 Jun 28 13:04 test_digital.log.Z Thanks! (3 Replies)
Discussion started by: syang68
3 Replies

10. UNIX for Dummies Questions & Answers

unzip .zip file and list the files included in the .zip archive

Hello, I am trying to return the name of the resulting file from a .zip archive file using unix unzip command. unzip c07212007.cef7081.zip Archive: c07212007.cef7081.zip SecureZIP for z/OS by PKWARE inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00 I used the following command to unzip in... (5 Replies)
Discussion started by: oracledev
5 Replies
Login or Register to Ask a Question