摘要: 实现文件的压缩 1、compress和uncompress ->.Z后缀,会删除原来文件 -d <=> uncompress -c 只将内容显示到屏幕上,不删除原文件。 compress -c a >a.Z -v 详情 zcat 直接查看文本文件。 zcat a.Z > a 2、gzip和gunzi 阅读全文
posted @ 2020-04-26 21:08 ldyaly 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1、把/etc/fstab文件内容重定向到/tmp目录下文件名为fstab.out cat /etc/fstab >/tmp/fstab.out 2、把hello world追加到/tmp/fstab.out文件尾部 echo "hello world" >>/tmp/fstab.out 3、禁止覆 阅读全文
posted @ 2020-04-26 20:15 ldyaly 阅读(191) 评论(0) 推荐(0) 编辑