리눅스에서 휴지통 (safedelete)
safedelete 를 통하여 리눅스 박스에 휴지통 만들기
http://rpmfind.net/linux/rpm2html/search.php?query=safedelete 에서
safedelete-1.3-6.src.rpm 을 다운받는다
root]#rpm -Uvh safedelete-1.3-6.src.rpm
root]#cd /usr/src/redhat/SOURCES
root]#mkdir -p /root/temp/safedelete
root]# mv * /root/temp/safedelete/
root]#cd /root/temp/safedelete
root]# tar xvfz safedelete-1.3.tar.gz
root]#tar xvfz safedel-1.3-patch.tar.gz
root]#cp safedelchk.c safedelete-1.3
root]#cp *.patch safedelete-1.3
root]# cd safedelete-1.3
root]# cp Makefile.LINUX Makefile
root]#patch -p1 < ./safedelete-1.3-glibc.patch
root]#patch -p1 < ./safedelete-1.3-y2k.patch
root]#patch undelete.c safedelete-1.3-redhat.patch
root]#patch Makefile safedelete-1.3-config.patch
root]#patch Makefile safedelete-1.3-makefile.patch
root]#make
root]#make install
.bashrc 에 다음 삽입
alias rm='/usr/bin/safedelete'
alias purge='/bin/rm'
export SAFEDAYS=7 # 7일간 보관하라
safedelchk
.safedelete.log 에 지운파일 정보를 보관
따라서, .safedelete.log를 보고 파일을 복원시키고자 할때
undelete 파일명 의 형식으로 복원함
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4041 | |
| 29 |
아우겐나이스
|
21년 전 | 4432 | |
| 28 |
아우겐나이스
|
21년 전 | 3455 | |
| 27 | 21년 전 | 5821 | ||
| 26 | 21년 전 | 3093 | ||
| 25 | 21년 전 | 6071 | ||
| 24 | 18년 전 | 3642 | ||
| 23 | 21년 전 | 3629 | ||
| 22 | 21년 전 | 4240 | ||
| 21 | 21년 전 | 3812 | ||
| 20 | 21년 전 | 4213 | ||
| 19 | 21년 전 | 6675 | ||
| 18 | 21년 전 | 4731 | ||
| 17 | 21년 전 | 6981 | ||
| 16 | 21년 전 | 4165 | ||
| 15 | 21년 전 | 2623 | ||
| 14 | 21년 전 | 4963 | ||
| 13 | 21년 전 | 3395 | ||
| 12 |
Recluse
|
21년 전 | 3869 | |
| 11 |
아우겐나이스
|
21년 전 | 3566 | |
| 10 |
Recluse
|
21년 전 | 3389 | |
| 9 | 21년 전 | 3977 | ||
| 8 | 21년 전 | 5156 | ||
| 7 | 21년 전 | 4753 | ||
| 6 | 21년 전 | 5672 | ||
| 5 | 21년 전 | 4108 | ||
| 4 | 21년 전 | 4827 | ||
| 3 | 21년 전 | 4735 | ||
| 2 | 21년 전 | 3232 | ||
| 1 | 22년 전 | 4336 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기