Linux-操作手册
文章平均质量分 64
五岳寻仙客
小白学习liunx的日记
展开
-
归档命令(1)——tar
用法: tar [选项…] [FILE]… GNU ‘tar’ 将许多文件一起保存至一个单独的磁带或磁盘归档,并能从归档中单独还原所需文件。示例 tar -cf archive.tar foo bar # 从文件 foo 和 bar 创建归档文件 archive.tar。 tar -tvf archive.tar # 详细列举归档文件 archive.tar 中原创 2017-08-25 10:53:00 · 540 阅读 · 0 评论 -
rmmod命令
rmmod命令用于从当前运行的内核中移除指定的内核模块。执行rmmod指令,可删除不需要的模块。Linux操作系统的核心具有模块化的特性,应此在编译核心时,务须把全部的功能都放如核心。你可以将这些功能编译成一个个单独的模块,待有需要时再分别载入它们。语法 rmmod(选项)(参数)选项 -v:显示指令执行的详细信息; -f:强制移除模块,使用此选项比较危险; -w:等待着,直到模块能原创 2017-10-13 01:31:31 · 832 阅读 · 0 评论 -
文本操作(3)——sed
sed的选项、命令、替换标记 命令格式sed [options] 'command' file(s) sed [options] -f scriptfile file(s)选项:-e<script>或--expression=<script>: 以选项中的指定的script来处理输入的文本文件;-f<script文件>或--file<script文件>=:以选项中指定的script文件来处理输转载 2017-08-31 14:54:56 · 242 阅读 · 0 评论 -
文本操作(2)——sort
[prophet@localhost cgi-bin]$ sort –help 用法:sort [选项]… [文件]… 或:sort [选项]… –files0-from=F Write sorted concatenation of all FILE(s) to standard output.Mandatory arguments to long options are mandator原创 2017-08-29 17:00:46 · 436 阅读 · 1 评论 -
文本操作(1)——cut
[prophet@localhost ~]$ cut –help 用法:cut [选项]… [文件]… Print selected parts of lines from each FILE to standard output.Mandatory arguments to long options are mandatory for short options too. -b, –by原创 2017-08-29 16:47:43 · 290 阅读 · 0 评论 -
查找命令(5)——which
[prophet @ localhost?] $ which –help用法:/ usr / bin / which [options] [ - ] COMMAND […] 将COMMAND的完整路径写入标准输出。–version, - [vV]打印版本并成功退出。 –help,打印此帮助并成功退出。 –skip-dot跳过PATH中以点开头的目录。 –skip-tilde跳过PATH中以波原创 2017-08-29 16:27:53 · 247 阅读 · 0 评论 -
查找命令(4)——whereis
[prophet@localhost ~]$ whereis –help用法: whereis [选项] 文件选项: -b 只搜索二进制文件 -B <目录> 定义二进制文件查找路径 -m 只搜索 man 手册 -M <目录> 定义 man 手册查找路径 -s 只搜索源代码 -S <目录> 定义源代码查找路径 -f原创 2017-08-28 16:02:57 · 198 阅读 · 0 评论 -
查找命令(3)——strings
[prophet @ localhost?] $ strings –help 用法:strings [选项] [文件] 打印[文件](默认为标准输入)中可打印的字符串 选项为: -a - –all扫描整个文件,而不仅仅是数据部分[默认] -d –data仅扫描文件中的数据部分 -f –print-file-name在每个字符串之前打印文件的名称 -n –bytes = [number]原创 2017-08-28 16:01:07 · 491 阅读 · 0 评论 -
查找命令(1)——find
[prophet@localhost ~]$ find –help 用法: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path…] [expression]默认路径为当前目录;默认表达式为 -print 表达式可能由下列成份组成:操作符、选项、测试表达式以及动作:操作符 (优先级递减;未做任何原创 2017-08-28 15:55:07 · 380 阅读 · 0 评论 -
查找命令(2)——locate
[prophet @ localhost?] $ locate –helpUsage: locate [OPTION]… [PATTERN]… 搜索mlocate数据库中的条目。-A, - 只打印匹配所有模式的条目 -b,–basename仅匹配路径名的基本名称 -c, - 仅计算找到的条目的打印数量 -d,–database DBPATH使用DBPATH而不是默认数据库(即/var/lib原创 2017-08-28 15:58:18 · 226 阅读 · 0 评论 -
归档命令(5)——shar
sharshar [ options ] file ...shar -S [ options ]选项选项有一个字母版本开始-或者长版开始- 。唯一的例外是–help,–version,–no-国际化和 –print-文本域目录不具有较短的版本。强制性参数长选项是强制性的短选项时也是。选项可以是任意顺序给出。有些选项是互相依赖的:如果使用-l或-L选项,则需要-o选项。 如果使用-a选项,则翻译 2017-08-27 23:44:28 · 698 阅读 · 0 评论 -
归档命令(3)——ar
[root@localhost ~]# ar --helpUsage: ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file... ar -M [<mri-脚本] 命令: d - 从归原创 2017-08-25 16:01:47 · 607 阅读 · 0 评论 -
归档命令(2)——cpio
[root@localhost nginx-1.12.1]# cpio –help Usage: cpio [OPTION…] [目标目录] GNU `cpio’ 归档文件及从包中提取文件例子: # 归档 name-list 中的文件到 archive cpio -o < name-list [> archive] # 从 archive 中提取文件 cpio -i [<原创 2017-08-25 15:14:30 · 438 阅读 · 0 评论 -
modprobe
modprobe命令用于智能地向内核中加载模块或者从内核中移除模块。modprobe可载入指定的个别模块,或是载入一组相依的模块。modprobe会根据depmod所产生的相依关系,决定要载入哪些模块。若在载入过程中发生错误,在modprobe会卸载整组的模块。语法 modprobe(选项)(参数) 选项 -a或–all:载入全部的模块; -c或–show-conf:显示所有模块的设置信原创 2017-10-13 01:38:48 · 561 阅读 · 0 评论