问答详情
源自:4-2 Linux中命令搜索命令

请教命令!

Whereis ls 

Whereis ls -b -m

Whereis ls -bm

这三条命令都是相等的对吗?

提问者:dire 2015-08-14 15:42

个回答

  • dire
    2015-08-18 00:11:37

    [root@localhost ~]# whereis ls

    ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz


    [root@localhost ~]# whereis ls -b -m

    ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz


    [root@localhost ~]# whereis ls -bm

    ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.g



  • hhh112123123
    2015-08-15 07:56:37

    第二个和第三个相等, 第一个没有加参数,-b   定位可执行文件。-m   定位帮助文件。