亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學(xué)習(xí)啦>學(xué)習(xí)電腦>操作系統(tǒng)>Linux教程>

      Linux系統(tǒng)下怎么查找可執(zhí)行文件

      時(shí)間: 孫勝652 分享

        可執(zhí)行文件是指可移植可執(zhí)行的文件,用于程序的執(zhí)行,那么Linux下要如何查找可執(zhí)行文件呢?下面學(xué)習(xí)啦小編就給大家介紹下Linux中查找可執(zhí)行文件的方法,一起來了解下吧。

        linux下查找可執(zhí)行文件

        ls -F|grep “*”

        這樣就可以了!

        ls -F | grep /$是什么意思

        ls -F的意思是把文件按照類型歸類,并且在末尾加上/ *等符號(hào)標(biāo)識(shí)

        | 管道輸出,把前面命令的結(jié)果當(dāng)做輸入傳給后面的命令

        grep /$的意思是從中挑出以/結(jié)尾的行,/就是標(biāo)識(shí)是目錄

        -F, --classify

        append indicator (one of */=》@|) to entries

        例子:

        代碼如下:

        [root@SOR_SYS ~]# ls -F

        1.sh* CC_manual_0701.rar gzpackage/ man.config script/ tr1.txt

        2005.03.01 dead.letter index.html ntpd-deploy.sh* start_tomcatServer229-1.sh tr.txt

        anaconda-ks.cfg Desktop/ install.log printc.sh start_tomcatServer229-2.sh usr/

        apache-tomcat-6.0.30.zip etc/ install.log.syslog rpmpackage/ stop_tomcatServer229-1.sh zy/

        camptocamp-tomcat-0.0.1/ get_date.sh lib/ ruby-1.8.7-p248/ stop_tomcatServer229-2.sh zy.bak/

        [root@SOR_SYS ~]#

        如果我們搜索以/結(jié)尾的,我們可以用以下方法:

        ls -F|grep \/【轉(zhuǎn)義字符】

        ls -F|grep /$

        ls -F|grep /

        我們來看看ls -F的作用:

        -F開關(guān)對(duì)可執(zhí)行文件添加一個(gè)*號(hào),為目錄添加一個(gè)/號(hào),為符號(hào)鏈接添加一個(gè)@號(hào)。

        上面就是Linux系統(tǒng)查找可執(zhí)行文件的方法介紹了,查找的時(shí)候可使用ls -F|grep “*”,你是否還在為找不到可執(zhí)行文件而煩惱呢?不妨試試本文介紹的方法吧。

      310881