精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦>學(xué)習(xí)電腦>操作系統(tǒng)>Linux教程>

      linux updatedb命令詳解

      時(shí)間: 佳洲1085 分享

        updatedb命令是linux系統(tǒng)下的一個(gè)命令。那么它的具體用法是怎樣的呢?下面由學(xué)習(xí)啦小編為大家整理了linux updatedb命令的相關(guān)知識(shí),希望對(duì)大家有幫助!

        1.linux updatedb命令說明

        updatedb命令用來創(chuàng)建或更新slocate命令所必需的數(shù)據(jù)庫(kù)文件。updatedb命令的執(zhí)行過程較長(zhǎng),因?yàn)樵趫?zhí)行時(shí)它會(huì)遍歷整個(gè)系統(tǒng)的目錄樹,并將所有的文件信息寫入slocate數(shù)據(jù)庫(kù)文件中。

        補(bǔ)充說明:slocate本身具有一個(gè)數(shù)據(jù)庫(kù),里面存放了系統(tǒng)中文件與目錄的相關(guān)信息。

        2.linux updatedb命令語法

        updatedb(選項(xiàng))

        3.linux updatedb命令選項(xiàng)

        -o<文件>:忽略默認(rèn)的數(shù)據(jù)庫(kù)文件,使用指定的slocate數(shù)據(jù)庫(kù)文件;

        -U<目錄>:更新指定目錄的slocate數(shù)據(jù)庫(kù);

        -v:顯示執(zhí)行的詳細(xì)過程。

        4.linux updatedb命令實(shí)例

        實(shí)用updatedb命令的-U選項(xiàng)可以指定要更新slocate數(shù)據(jù)庫(kù)的目錄。

        updatedb -U /usr/local/ 更新指定命令的slocate數(shù)據(jù)庫(kù)

      3584579