coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Monday September 6, 2010


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 26 guests online

Newest Member

Starmamex

Hit Counter
4760820 Visitors

cool Statistics
coolcommands:1313
Categories:82
Total queries:523831
Members:4281





Search coolcommands.com
Search Keyword:


coolcommand

how to create a tar archive that splits itself on the fly
Description

Sometimes, we create a tar archive, and need to split it into smaller chunks so that it can be burned onto CD/DVD. The straightforward approach is to create the archive and then use ’split.’ To do this, you will need more free space on your disk. In fact, you’ll need space twice the size of the created archive. To avoid this limitation, split the archive as it is being created.

To create a tar archive that splits itself on the fly use the following set of commands:

First create the archive:

# tar -cz $(DIRECTORY_OR_FILE_TO_COMPRESS) | split -d -b $(CHUNK_SIZE_IN_BYTES) - $(FILE_NAME_PREFIX)

To extract the contents:

# cat $(FILE_NAME_PREFIX)* | tar -xz
Example

tar -cz MyBigDir | split -d -b 650000000 - tarpart; cat tarpart* | tar -xz

Return to search results

Random coolcommands

coolcommand: instfix - to get a list of all LPPs installed after an ML update in IBM AIX
Example: instfix -ciqk 4330-08_AIX_ML | grep ":-:"
[show me the details]
coolcommand: how to filter a logfile by column and a value
Example: tail -f logfile | awk '$11>0'
[show me the details]
coolcommand: type - how to get a description of the command type
Example: type find
[show me the details]
coolcommand: how to display the last boot device in AIX
Example: getconf BOOT_DEVICE
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1138
audet37
kah00na32
Mariom24
lebjf00013

Top 5 Searches

Category Solaris42690
Category AIX38082
Category General UNIX34254
solaris20802
aix19388

Terms of Use
Privacy
Contact


 
coolcommands.com © 2010. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum