일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Hack
- cadre
- rsync
- http
- Disk
- goaccess
- PORT
- Cache
- 리눅스
- Python
- 솔라리스
- Performance
- 디스크
- iptables
- 좌절교육
- 칭찬교육
- rm
- Bash
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- Kernel
- Linux
- windows
- ext4
- CPU
- pid
- ext3
- PERL
- rm -rf
- DNS
- apachetop
- Today
- Total
Ben's
trash-cli(이런 좋은게 있었네요) 본문
삭제된 파일을 휴지통으로 넣어버리는 툴입니다.
기본 기능은 아래와 같고 삭제된 파일이 모이는 곳을 용량이 넉넉한 쪽의 특정 경로로 가게 하는 부분은 연구를 좀 더 해봐야 합니다.
참고링크
http://code.google.com/p/trash-cli/wiki/Download
http://katselphrime.wo.tc/2013/03/12/trash-cli/
http://www.gnutoolbox.com/trashcli/
* INSTALL
1. python2.5 이상 설치 필요
2. trash-cli 을 설치하기 위한 easy_install-2.5 스크립트 추출
[root@zenoss trash-cli-0.11.3-r315]# /usr/local/python2.5/bin/python ./setup.py install
3. trash-cli 설치
[root@zenoss trash-cli-0.11.3-r315]# /usr/local/python2.5/bin/easy_install-2.5 trash-cli
Searching for trash-cli
Best match: trash-cli 0.11.3-r315
Processing trash_cli-0.11.3_r315-py2.5.egg
trash-cli 0.11.3-r315 is already the active version in easy-install.pth
Installing trash-list script to /usr/local/python2.5/bin
Installing restore-trash script to /usr/local/python2.5/bin
Installing trash-put script to /usr/local/python2.5/bin
Installing volume-of script to /usr/local/python2.5/bin
Installing trash-empty script to /usr/local/python2.5/bin
4. 기존 rm의 이름을 변경해두고 trash-put을 /bin/rm으로 소프트 링크
# mv /bin/rm /bin/rm.b
# ln -s /usr/local/python2.5/bin/trash-put /bin/rm
5. 지운 파일 보기
[root@zenoss var]# /usr/local/python2.5/bin/trash-list
2013-03-19 14:19:30 /root/tmp/trash-cli-0.11.3-r315/aaa
2013-03-19 14:24:44 /root/tmp/trash-cli-0.11.3-r315/konaehyeong
2013-03-19 14:26:04 /var/heoji
6. 휴지통으로 옮겨진 파일 위치: 지운 파티션에 숨김 디렉토리 아래로 들어감.
예)
/root/.local/share/Trash/files/konaehyeong
/var/.Trash-0/files/heoji
'리눅스 > 백업' 카테고리의 다른 글
rsync --exclude 옵션 잘못쓰면 대박 (0) | 2013.05.16 |
---|---|
extundelete - file undelete util for ext4 (0) | 2013.02.08 |
ext3grep 고마워 (0) | 2013.01.30 |
rsync 설치시 acl 옵션이 추가가 안될때 처리 (0) | 2013.01.16 |