|
| cool Statistics |
| | coolcommands: | 1313 | | Categories: | 82 | | Total queries: | 523831 | | Members: | 4281 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
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
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1138 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 13 |
Top 5 Searches
|
| Category Solaris | 42690 |
| Category AIX | 38082 |
| Category General UNIX | 34254 |
| solaris | 20802 |
| aix | 19388 |
|
|
|
|