Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-19-2007, 09:19 AM
|
#1
|
|
Member
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82
Rep:
|
Usage of "k size" option in "tar" ??
Friends,
In tar's man page there is an optin to split the output file to desired size. I searched in SUN's
Documentation Site for examples and get more details!
But I failed to get the desired Output.
( I have to send 100 pictures to my friend, but gmail will support upto 10 MB in a single mail, so I planned to zip the files in 10MB size,His OS in Windows )
Kindly Help me !!
reg
ARUN
|
|
|
|
08-19-2007, 03:36 PM
|
#2
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
This tar option is designed for fixed size devices output, like tapes or floppies, not files.
You can just use the split command to split your archive (eg:
Code:
split -b 10m file.tar
|
|
|
|
08-19-2007, 05:05 PM
|
#3
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Your tar program must be different from the gnu tar program. The -k option is different. Since you friend is using Windows, you might want to use zipsplit instead. You could also use the split command if you have it and produce an MSDOS script for your friend that uses the "copy \b +" command to join the parts.
|
|
|
|
08-19-2007, 07:23 PM
|
#4
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Yes, zipsplit is indeed a simpler alternative, and included with Solaris, as gnu tar and split are by the way.
|
|
|
|
08-20-2007, 02:59 PM
|
#5
|
|
Member
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82
Original Poster
Rep:
|
Hi Thanks Everybody, I solved the Problem
bash-3.00$ zipsplit -n 10485760 100MSDCF.zip
Then the file is split to 3 files. (10MB Each)
reg
ARUN
Last edited by kcarun; 08-20-2007 at 03:02 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|