tar -czvf name-of-archive.tar.gz /path/to/directory-or-file -c: Create an archive. -z: Compress the archive with gzip. -v: Display progress in the terminal while creating the archive, also known as "verbose" mode. The v is always optional in the
当你在使用文本文件时,很可能需要查找和替换文件中的字符串.sed 命令主要用于替换一个文件中的文本.在 Linux 中这可以通过使用 sed 命令和 awk 命令来完成. 在本教程中,我们将告诉你使用 sed 命令如何做到这一点,然后讨论讨论 awk 命令相关的. sed 命令是什么 sed 命令表示 Stream Editor(流编辑器),用来在 Linux 上执行基本的文本操作.它可以执行各种功能,如搜索.查找.修改.插入或删除文件. 此外,它也可以执行复杂的正则表达式匹配. 它可用于以下目
1. Sed的help 鸟哥说的 学东西 先看 help 先看man 再google 不好FQ再百度.. Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... -n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the comma
目录 ls cd mkdir mv cp scp rm df du chmod chown chgrp head tail screen apt-get Ubuntu常用shell命令 Ubuntu作为Linux一个发行版,受到了很多用户的喜爱.正如绝大多数Linux发行版一样,shell是Ubuntu使用过程中的一大利器,特别是对于服务器用户来说,没有图形界面,所有的操作都只能依赖于shell指令完成.现在将我平时遇到的一些常见的shell指令总结如下,以备以后查找: ls 这或许是shell