- Community Home
- >
- HPE Community, Taiwan
- >
- Tru64 Unix & OpenVMS
- >
- Tru64 Unix
- >
- 如何使用 dirclean
Tru64 Unix
1833223
會員
3139
線上
110051
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
論壇
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
討論平台
論壇
討論平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 06-17-2004 10:55 AM
在 06-17-2004 10:55 AM
如何使用 dirclean
假如要刪除 /data 目錄下 3 天以上未曾修改過的檔案, 該如何使用 dirclean 指令來達成?
3則回覆 3
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 06-18-2004 01:42 PM
在 06-18-2004 01:42 PM
如何使用 dirclean
If you use hp-ux, pls refer "find" command man page. Ex:
$ find /data -atime +3 -exec rm {} \;
$ find /data -atime +3 -exec rm {} \;
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 06-18-2004 02:25 PM
在 06-18-2004 02:25 PM
如何使用 dirclean
對Tru64 UNIX而言, 你也可以用find指令, 下面是Tru64
UNIX dirclean 使用範例:
# dirclean -a +4 /var/adm/syslog.dated/
你也可以用
# man dirclean 查看指令選項及例子.
Danny
UNIX dirclean 使用範例:
# dirclean -a +4 /var/adm/syslog.dated/
你也可以用
# man dirclean 查看指令選項及例子.
Danny
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 06-18-2004 08:17 PM
在 06-18-2004 08:17 PM
如何使用 dirclean
Hi ericfj,
From the "man dirclean" description. The answer will be run as below:
# dirclean -a +2 /data.
# man dirclean
.
-a days
Sets the threshold for file removal in terms of the file's
atime (access time). Therefore, +1 means that files that were
last accessed at least 48 hours before dir-clean processing
will be removed. Specifying -1 means that files accessed less
than 24 hours before dirclean processing will be removed, and
1 means files that were last accessed at least 24 hours ago
but less than 48 hours ago will be removed.
Hope it helpful to you!
Richard.
From the "man dirclean" description. The answer will be run as below:
# dirclean -a +2 /data.
# man dirclean
.
-a days
Sets the threshold for file removal in terms of the file's
atime (access time). Therefore, +1 means that files that were
last accessed at least 48 hours before dir-clean processing
will be removed. Specifying -1 means that files accessed less
than 24 hours before dirclean processing will be removed, and
1 means files that were last accessed at least 24 hours ago
but less than 48 hours ago will be removed.
Hope it helpful to you!
Richard.
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款