Linux 命令速查手册(一)学习Linux必须要会的帮助命令
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Linux 命令速查手册(一)学习Linux必须要会的帮助命令,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2426字,纯文字阅读大概需要4分钟。
内容图文
![Linux 命令速查手册(一)学习Linux必须要会的帮助命令](/upload/InfoBanner/zyjiaocheng/932/10ce08c7fcbf4b2ebed0699acf4006e7.jpg)
Linux 命令速查手册(一)学习Linux必须要会的帮助命令
1.1 whatis:简述命令的作用
whatis: 简述命令的作用
root@Eternal:~# whatis whatis
whatis (1) - display one-line manual page descriptions
1.2 info:查看命令详细的说明文档
root@Eternal:~# info whatis
WHATIS(1) Manual pager utils WHATIS(1)
NAME
whatis - display one-line manual page descriptions
SYNOPSIS
whatis [-dlv?V] [-r|-w] [-s list] [-m system[,...]] [-M path] [-L
locale] [-C file] name ...
DESCRIPTION
Each manual page has a short description available within it. whatis
searches the manual page names and displays the manual page descrip‐
tions of any name matched.
name may contain wildcards (-w) or be a regular expression (-r). Using
these options, it may be necessary to quote the name or escape (\) the
special characters to stop the shell from interpreting them.
......
1.3 man:查看命令的说明文档
root@Eternal:~# man locate
locate(1) General Commands Manual locate(1)
NAME
locate - find files by name
SYNOPSIS
locate [OPTION]... PATTERN...
DESCRIPTION
locate reads one or more databases prepared by updatedb(8) and writes
file names matching at least one of the PATTERNs to standard output,
one per line.
If --regex is not specified, PATTERNs can contain globbing characters.
If any PATTERN contains no globbing characters, locate behaves as if
the pattern were *PATTERN*.
By default, locate does not check whether files found in database still
exist (but it does require all parent directories to exist if the data‐
base was built with --require-visibility no). locate can never report
files created after the most recent update of the relevant database.
......
man分类标示:
1)用户可以操作的命令或者是可执行文件
2))系统核心可调用的函数与工具等
3))一些常用的函数与数据库
4)设备文件的说明
5)设置文件或者某些文件的格式
6)游戏
7)惯例与协议等。例如Linux标准文件系统、网络协议、ASCⅡ,码等说明内容
8)系统管理员可用的管理条令
9)与内核有关的文件
用法:
root@Eternal:~# man 3 printf
1.4 which:查看可执行文件的路径
which:查看可执行文件的路径
root@Eternal:~# which locate
/usr/bin/locate
1.5 whereis:查看程序的搜索路径
whereis:查看程序的搜索路径
root@Eternal:~# whereis locate
locate: /usr/bin/locate /usr/share/man/man1/locate.1.gz
内容总结
以上是互联网集市为您收集整理的Linux 命令速查手册(一)学习Linux必须要会的帮助命令全部内容,希望文章能够帮你解决Linux 命令速查手册(一)学习Linux必须要会的帮助命令所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。