• 【每天一个Linux命令】13. Linux中whereis命令的用法


     
    命令用途

    whereis命令用来查找命令的位置,包括执行文件、源代码和手册页文件

    命令用法

    1. 查找指定命令<command>的位置,包括执行文件、源代码和手册页文件

    格式:whereis <command>

    例子:
    bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ whereis find
    find: /usr/bin/find /usr/bin/X11/find /usr/share/man/man1/find.1.gz

    2. 只查找指定命令<command>的执行文件位置

    格式:whereis -m <command>

    例子:

    bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ whereis -b find
    find: /usr/bin/find /usr/bin/X11/find

    3.  只查找指定命令<command>的手册页文件所在位置

    格式:whereis -s <command>

    例子:

    bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ whereis -m find
    find: /usr/share/man/man1/find.1.gz

    4. 只查找指定命令<command>的源代码所在位置

    格式:whereis -s <command>

    例子:

    bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ whereis -s find
    find:




     
  • 相关阅读:
    jQuery5事件相关
    jQuery4操作表单+属性+样式
    ueditor不能上传mp4格式的视频--解决方案
    笔记本怎么设置WIfi热点
    em rem vw vh
    字体的使用,坑爹啊!
    font的使用
    photoshop简单切图
    HTTP的学习
    call apply bind的联系与区别
  • 原文地址:https://www.cnblogs.com/pangblog/p/3329102.html
Copyright © 2020-2023  润新知