- 论坛徽章:
- 0
|
要想使用该程序先手动执行以下两个命令
mkdir ~/.recycle ### 建立recycle目录
alias rm='/usr/local/bin/rm' ### /usr/local/rm改为附件中rm存放的路径
附件中有rm和recycle两个命令
1.rm删除文件和文件夹,用法与自带rm命令相似
2.recycle显示回收站里面的内容:可以按名字排序,也可以按删除时间排序。
recycle -d可以进入整理回收站的模式: 用法举例如下
recycle -d -empty清空回收站
recycle -d -t 3清空3天前的文件
recycle -d -s 5清空超过5M的文件
recycle -d -t 3 -s 5清空3天前且大小超过5M的文件
- $ rm --help
- Usage: rm [-r] [-f] [file]...
- del file and move it the recycle
-
- 与系统自带的rm命令参数一致
复制代码
- $ recycle --help
- recycle version 1.0
- Usage: recycle [-l] [-n] [-r]
- recycle -d -empty
- recycle -d [-f] [-t <time>] [-s <size>]
- manipulate the recycle
- Options:
- l - list the deleted file with long format
- n - sort the deleted file by name
- r - list the deleted whth reverse order
- d - delete file mode
- empty - empty the recycle
- h - Help
- t <time> - delete the file `time' days ago
- s <size> - delete file which size greater the `size' megabyte
-
复制代码
[ 本帖最后由 tianlijian 于 2009-12-30 23:57 编辑 ] |
|