摘要:
1. 同时修改文件的修改时间和访问时间touch -d "2010-05-31 08:10:30" test.doc2. 只修改文件的修改时间touch -m -d "2010-05-31 08:10:30" test.doc3. 只修改文件的访问时间touch -a -d "2010-05-31 08:10:30" test.doc 阅读全文
摘要:
Linux 某个目录下的文件按大小排序1. df -lh2. du -s /usr/* | sort -rn这是按字节排序3. du -sh /usr/* | sort -rn这是按兆(M)来排序4.选出排在前面的10个du -s /usr/* | sort -rn | head5.选出排在后面的10个du -s /usr/* | sort -rn | taildu -h –-max-depth=0 userdu -sh –-max-depth=2 | more本文详细介绍了linux中du命令参数的用法,并用示例进一步说明其使用方法。Du命令功能说明:统计目录(或文件)所占磁盘空间的大小。语 阅读全文