Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3646752
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2018-07-24 10:04:09

[root@localhost test]#
[root@localhost test]#
[root@localhost test]# mv initrd.img.gz initrd.img
[root@localhost test]# ls
initrd.img
[root@localhost test]#
[root@localhost test]#
[root@localhost test]#
[root@localhost test]# cp initrd.img ../
[root@localhost test]# ls
initrd.img
[root@localhost test]#
[root@localhost test]#
[root@localhost test]# xz -dc initrd.img | cpio -id
266405 块
[root@localhost test]# ls
bin  dev  etc  init  initrd.img  lib  lib64  proc  root  run  sbin  shutdown  sys  sysroot  tmp  usr  var
[root@localhost test]#
[root@localhost test]#
[root@localhost test]# rm initrd.img
rm:是否删除普通文件 "initrd.img"?y
[root@localhost test]#
[root@localhost test]#
[root@localhost test]# ls
bin  dev  etc  init  lib  lib64  proc  root  run  sbin  shutdown  sys  sysroot  tmp  usr  var
[root@localhost test]#
[root@localhost test]# find . | cpio -c -o | xz -9 --format=lzma > initrd.img

阅读(1224) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~