du命令面向文件,只计算文件或目录占用的空间 。
作用:查看内存及交换空间使用状态
语法: free [-kmg]
选项:
-k:以KB为单位显示,默认就是以KB为单位显示
-m:以MB为单位显示
-g:以GB为单位显示
清理缓存命令:
echo 1/proc/sys/vm/drop_caches
Linux命令的一般格式COMMAND[OPTIONS...][ARGUMENTS...]
命令选项参数
有一些长选项与短选项是同样的功能 , 例如用date命令显示格林威治时间,既可用-u,也可以用-utc
另外,两个短选项可以放在一起写 , 而且不分前后:ls -al ; ls -la
Linux 命令 格式 (命令的详细,排列,顺序,样式 。。。。)详细的格式:man --help
Usage: man [OPTION...] [章节] 手册页...
-C, --config-file=文件使用该用户设置文件
-d, --debug输出调试信息
-D, --default将所有选项都重置为默认值
--warnings[=警告]开启 groff 的警告
主要运行模式:
-f, --whatis等同于 whatis
-k, --apropos等同于 apropos
-K, --global-apropossearch for text in all pages
-l, --local-file
把“手册页”参数当成本地文件名来解读
-w, --where, --location输出手册页的物理位置
-W, --where-cat, --location-cat
输出 cat 文件的物理位置
-c, --catman由 catman 使用,用来对过时的 cat
页重新排版
-R, --recode=编码output source page encoded in ENCODING
寻找手册页:
-L, --locale=区域
定义本次手册页搜索所采用的区域设置
-m, --systems=系统use manual pages from other systems
-M, --manpath=路径设置搜索手册页的路径为“路径”
-S, -s, --sections=列表使用以半角冒号分隔的章节列表
-e, --extension=扩展
将搜索限制在扩展类型为“扩展”的手册页之内
-i, --ignore-case查找手册页时不区分大小写字母
(默认)
-I, --match-case查找手册页时区分大小写字母 。
--regexshow all pages matching regex
--wildcardshow all pages matching wildcard
--names-onlymake --regex and --wildcard match page names only,
not descriptions
-a, --all寻找所有匹配的手册页
-u, --update强制进行缓存一致性的检查
--no-subpagesdon't try subpages, e.g. 'man foo bar' = 'man
foo-bar'
控制格式化的输出:
-P, --pager=PAGER使用 PAGER 程序显示输出文本
-r, --prompt=字符串给 less pager 提供一个提示行
-7, --ascii显示某些 latin1 字符的 ASCII 翻译形式
-E, --encoding=编码use selected output encoding
--no-hyphenation, --nh turn off hyphenation
--no-justification,--njturn off justification
-p, --preprocessor=字符串字符串表示要运行哪些预处理器:
e - [n]eqn, p - pic, t - tbl,
g - grap, r - refer, v - vgrind
-t, --troff使用 groff 对手册页排版
-T, --troff-device[=设备]使用 groff 的指定设备
-H, --html[=浏览器]使用或指定浏览器显示 HTML 输出
-X, --gxditview[=分辨率]使用 groff 并通过 gxditview (X11)
来显示:
-X = -TX75, -X100 = -TX100, -X100-12 = -TX100-12
-Z, --ditroff使用 groff 并强制它生成 ditroff
-?, --helpgive this help list
--usagegive a short usage message
-V, --versionprint program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Report bugs to cjwatson@debian.org.
Linux命令大全linux命令格式:
说明:command: 命令名,相应功能的英文单词或单词的缩写 [-options]:选项,可用来对命令进行控制,也可以省略 , []代表可选 parameter1 …:传给命令的参数:可以是零个一个或多个
- 如何使用cmd命令行提示符登录mysql服务器 cmd中登陆mysql
- redis的热点数据缓存 redis热点数据切换
- redis缓存 redis缓冲常用命令
- 如何修改戴尔服务器的IP地址? 戴尔服务器ip地址怎么改
- mysql中ext
- 优惠券功能的业务流程设计图谱 优惠券redis处理
- redis通配符的使用
- redis是开发工具吗 redis的开发人是谁
- mysql备份一个表的数据 备份一个mysql库
- mysql中删除记录的命令 mysql删除中继日志
