日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

系統(tǒng)管理:Linux系統(tǒng)下臨時(shí)文件TMP清理

;系統(tǒng)使用時(shí)間長后會(huì)產(chǎn)生臨時(shí)文件(/tmp下),需要清理 。但清理的時(shí)候不推薦使用rm -rf 。這樣有時(shí)會(huì)引起程序的僵死 。推薦使用tmpwatch命令來進(jìn)行清理 。關(guān)于tmpwatch的說明如下: 名稱 : tmpwatch 版本 : 2.8.4 發(fā)布號(hào) : 5 所屬組 : 系統(tǒng)環(huán)境/基礎(chǔ) 源碼包: tmpwatch-2.8.4-5.src.rpm 大小 : 13273 許可類型: GPL 摘要 : 根據(jù)文件被訪問的時(shí)間來刪除文件的工具 。簡介 : tmpwatch 工具從指定的目錄中遞歸地搜索,并刪除在指定時(shí)間段內(nèi)沒有被訪問的文件 。tmpwatch 一般被用來清掃那些用來臨時(shí)駐留文件的目錄(譬如,/tmp)tmpwatch 忽略符號(hào)鏈接,它不會(huì)切換文件系統(tǒng),而且只刪除空目錄和常規(guī)文件 。語 法:tmpwatch [-afqv][--test][超期時(shí)間][目錄...] 補(bǔ)充說明:執(zhí)行tmpwatch指令可刪除不必要的暫存文件,您可以設(shè)置文件超期時(shí)間,單位以小時(shí)計(jì)算 。參數(shù): -a或--all刪除任何類型的文件 。-f或--force強(qiáng)制刪除文件或目錄,其效果類似rm指令的"-f"參數(shù) 。-q或--quiet不顯示指令執(zhí)行過程 。-v或--verbose詳細(xì)顯示指令執(zhí)行過程 。-test僅作測(cè)試,并不真的刪除文件或目錄 實(shí)例: sudo /usr/sbin/tmpwatch -afv 3 /tmp (清除/tmp下三小時(shí)以內(nèi)沒有使用的文件,并將結(jié)果輸出) 。效果: [yyc@localhost ~]$ sudo /usr/sbin/tmpwatch -afv 3 /tmpremoving file /tmp/mapping-yycremoving file /tmp/orbit-yyc/linc-814-0-1bf6199e48d6eremoving file /tmp/orbit-yyc/linc-7ee-0-74c6cf6b5c2c6removing file /tmp/orbit-yyc/linc-7fd-0-3ae286a04fa21removing file /tmp/orbit-yyc/linc-854-0-4e3c22c96ddfremoving file /tmp/orbit-yyc/linc-798-0-1c90b9a4739a7removing file /tmp/orbit-yyc/linc-7e9-0-56828c5c66be1removing file /tmp/orbit-yyc/linc-815-0-1e0f6f36a2ee3removing file /tmp/orbit-yyc/bonobo-activation-server-iorremoving file /tmp/orbit-yyc/linc-850-0-5c3b9d5470bfcremoving file /tmp/orbit-yyc/linc-803-0-5ee49981d2ceeremoving file /tmp/orbit-yyc/linc-852-0-5c3b9d54bcd06removing file /tmp/orbit-yyc/linc-83e-0-716284b294faeremoving file /tmp/orbit-yyc/linc-856-0-5c3b9d547287eremoving file /tmp/orbit-yyc/linc-81d-0-1e0f6f36e88f7removing file /tmp/orbit-yyc/linc-7fa-0-6c21b504ee8e0removing file /tmp/orbit-yyc/linc-7f9-0-577d962b48783removing file /tmp/orbit-yyc/linc-7f6-0-1440368b7d5e4removing file /tmp/orbit-yyc/linc-81a-0-200a47e1c1117removing file /tmp/orbit-yyc/bonobo-activation-register.lockremoving file /tmp/orbit-yyc/linc-7f7-0-5950ba2b9774dremoving directory /tmp/orbit-yyc if not emptyremoving file /tmp/.esd-500/socketremoving file /tmp/pulse-yyc/pidremoving file /tmp/pulse-yyc/nativeremoving file /tmp/keyring-Mf0bbZ/socketremoving file /tmp/.X0-lockremoving file /tmp/.X11-unix/X0removing file /tmp/.ICE-unix/1944removing file /tmp/ssh-RcIyLY1944/agent.1944removing file /tmp/.gdmK8P41Tremoving file /tmp/gconfd-yyc/lock/ior

    推薦閱讀