- 浏览: 1304711 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (351)
- Java General (37)
- .net General (2)
- Linux Toy (55)
- Oracle (81)
- Mysql (11)
- Programer Career (12)
- Oh, my living ! (2)
- Shell Script (8)
- Web Service (0)
- Linux Server (22)
- Php/Python/Perl (3P) (2)
- Javascript General (5)
- Saleforce Apex Dev (2)
- Web General (5)
- Xen & VM tech. (17)
- PSP (13)
- OpenSolaris (34)
- php (1)
- RAI/flex/action script (16)
- asterisk/CTI (7)
- 交互设计 (6)
- English (3)
- Lucene (1)
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
http://bradthemad.org/tech/notes/cpio_directory.php
Most people live their whole lives without ever using the cpio utility. However, it is a useful thing, and is sometimes better suited to copying lots of files around than tar or cp. Here's a quick primer.
Some important flags
(In case the man-page wasn't clear enough)
Basic usage
Create a cpio archive:
localhost% find path/ -depth -print | cpio -oaV > archive.cpio localhost% find path/ -depth -print | cpio -oaV -O archive.cpio
Create a cpio archive and compress it:
localhost% find path/ -depth -print | cpio -oaV | gzip -c > archive.cpio.gz
Extract a cpio archive:
localhost% cpio -imVd < archive.cpio localhost% cpio -imVd -I archive.cpio
List the contents of a cpio archive:
localhost% cpio -it < archive.cpio localhost% cpio -it -I archive.cpio
Use cpio copy-pass to copy a directory structure to another location:
localhost% find path/ -depth -print | cpio -pamVd /new/parent/dir
Pathnames
Avoid using pathnames starting with /, as that can be inflexible and possibly messy when extracting an archive. Good practice is to change to the directory above the one you're copying. That way, extracted files will go into their own directory, rather than the current directory, much like a well-behaved source tarball. For example:
localhost% pwd /usr/src/linux-2.4 localhost% cd .. localhost% find linux-2.4/ -depth -print | cpio -oaV -O linux-2.4.cpio
cpio over ssh
To cpio a local directory, send the output to ssh and feed it to cpio on a remote host:
localhost% find path/ -depth -print | cpio -oaV | ssh user@host 'cpio -imVd'
Ssh to a remote host, cpio a remote directory, and get its output locally:
localhost% ssh user@host "find path/ -depth -print | cpio -oaV" | cpio -imVd
cpio and rpm
Ever wanted to extract files from an RPM package without installing it? It's easy. RPMv4 includes a utility called "rpm2cpio", which creates a cpio stream of files from a given RPM. You can pipe this into cpio just like a regular archive or stream.
List the included files:
localhost% rpm2cpio foo.rpm | cpio -it ./usr/bin/foo ./usr/share/man/man1/foo.1.gz 39 blocks
Note that the pathnames in the cpio stream begin with "./" -- this is important to know if you want to name specific files to extract.
Extract all files:
localhost% rpm2cpio foo.rpm | cpio -imVd .. 39 blocks
Extract only the manpage from that package:
localhost% rpm2cpio foo.rpm | cpio -imVd ./usr/share/man/man1/foo.1.gz
发表评论
-
Cygwin 中 xwin 的启动参数
2010-11-20 14:21 2706不知为何现在装的cygwin xwin没有startxwin ... -
三种数据库,取随机记录的方法
2010-09-16 12:23 1199mysql:select * from tablename o ... -
用 grep 恢复误删的文本文件
2010-08-26 14:34 1981作为长期的电脑使用者,肯定会有误删文件的经历,在 Mac ... -
使用TELNET手工操作 SMTP/POP 收发邮件
2010-08-09 21:44 2423说明:手工录入的用蓝色字体表示,#后的为注释,不可录入。= ... -
关于 port forward 的一个实例
2010-07-07 09:25 1550tomcat 服务于 8080端口,但不想在前面加 apach ... -
ubuntu 半虚拟化domU的安装方法
2010-06-05 21:12 2459ubuntu还没有通过http://方法安装,不像redh ... -
mount 硬盘镜像的一般问题。
2010-06-01 12:33 25451. 要搞清楚文件是 是由整个分区来的,还是整个硬盘来的 ... -
通过 ulimit 改善系统性能
2010-05-22 09:07 1335http://www.ibm.com/developer ... -
lvm 的一些笔记
2010-03-22 22:50 2841今天,不得不面对lvm了,毕竞是公司用的. ... -
mencoder来提取电影mp3文件
2009-12-16 21:45 2023假如在欣赏电影过程中出现了一段美妙的插曲(特别是印度电影,一般 ... -
netcat usage sample
2009-11-28 18:33 1256This page documents various t ... -
dd 建立一个没有内容的大文件
2009-11-22 09:36 1952dd if=/dev/zero of=sparse-file ... -
Mounting a filesystem located on a partition of an image of a disk
2009-10-24 17:52 1594Mou ... -
将光盘镜像CentOS-5.3-i386-bin-DVD.iso设置成为yum源
2009-09-28 07:43 3691#mkdir /centos5.3.dvd (随便起个文件夹名 ... -
拷贝指定的文件出来但保持目录结构
2009-09-18 08:39 3039抽取当前目录以下的所有logo1.* 或 logo2.* 到 ... -
定制 bt4 frefinal live cd ( ubuntu)
2009-08-21 10:01 2571Customising the BackTrack 4 Pre ... -
linux 下查看 iso 文件信息
2009-08-21 09:55 2239root@feng-desktop:/media/sda5/i ... -
copy file over ssh with tar
2009-08-15 08:57 1417tar is usually used for achiv ... -
copy file using tar
2009-08-11 17:22 1162We assume /source/dir is a file ... -
VLC webcam 准实时视频
2008-10-28 23:19 2387#!/bin/bash file=/root/video_$( ...
相关推荐
说明:cpio 共有三种基本模式,-o即copy-out 模式,将一组文件copy到一个文件库,-i 即copy-in 模式,读取文件库,并将其展开在当前目录,-p 能从某个目录读取所有文件(包括子目录到另一个目录),且不以archive...
cpio -i [ -6AbBcdfkmnqrsStTuvV ] [-C bufsize ] [ [ -I file [, file ... ] ] [ -M message ] ] [ -Pifd,ofd ] [ pattern ... ] cpio -p [ -adlLmruvV ] [ -Pifd,ofd ] directory 描述 (DEscriptION) cpio...
详细讲解了cpio命令的用法,包括很多的例子
解压cpio文件 。
直接将此cpio文件系统包含进kernel即可启动! 也可用好压在xp下解压,即可的文件系统!
cpio 命令大全。看了就知道好用 关于cpio生成。Linux自带了两个重要的工具:gen_initramfs_list.sh和gen_init_cpio
linux下的dd和cpio命令.pdf
normal-cpio-client.cpio
1.移动读取.bat 文件 到非中文需压缩目录内 2.双击 移动读取.bat 生成1.txt ...4.移动 libiconv2.dll、libintl3.dll、压缩.cmd、cpio.exe 到非中文需压缩目录内 5.双击 压缩.cmd 等待生成 message.cpio
cpio-2.10-10.el6.i686.rpm是centos工具包。
开源项目-cavaliercoder-go-cpio.zip,cpio: Go native implementation of the CPIO archive file format
解压网上介绍较多,不多说,重新压缩,网上介绍的不是WINDOWS系统下的,在WINDOWS下,建一文件夹, 把把本解压文件和meesage放入该文件夹, 第一步,解压,双击:解压.cmd 第二步,读取文件,双击:读取文件.cmd 生成...
Linux cpio命令 Linux cpio命令用于备份文件。 cpio是用来建立,还原备份档的工具程序,它可以加入,解开cpio或tra备份档内的文件。 语法 cpio [-0aABckLovV][-C ][-F ][-H ][-O ][--block-size=][--force-local][-...
oracle 10G_database_linux_x86_64
离线安装包,亲测可用
10gr2_aix5l64_client.cpio.zip.002
10gr2_aix5l64_client.cpio.zip.001
10gr2_aix5l64_database.cpio.zip.001
官方离线安装包,亲测可用
cpio Rust中的独立式(兼容no_std)CPIO文件阅读器。 当前仅支持newc格式。