- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- lost+found 활용방법
HP-UX
1821817
회원
3973
온라인
109638
솔루션
포럼
범주
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
블로그
정보
커뮤니티 언어
언어
포럼
블로그
2 응답 2
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 05-28-2004 10:00 PM
날짜: 05-28-2004 10:00 PM
lost+found 활용방법
unix는 기본적으로 rm으로 삭제한 file이나 direcory는 복구가 불가능합니다. 특별한 application을 사용하지 않는한....
final data는 이기능을 지원합니다.
lost+found directory는
- fsck로 점검 후 깨진 file이 이 디렉토리 내에 생성된다.
- 파일의 이름이 inode number로 생성되기 때문에,파일의 일부 정보를 가지고 원래 파일 이름을 추측하여(file , strings, what 등의 명령어를 이용하여 originalfile 을 추측) 원위치에 복사한다.
- “lost+found” directory가 삭제 되었을 시 mklost+found 명령어로 다시 생성합니다.
그럼~~
final data는 이기능을 지원합니다.
lost+found directory는
- fsck로 점검 후 깨진 file이 이 디렉토리 내에 생성된다.
- 파일의 이름이 inode number로 생성되기 때문에,파일의 일부 정보를 가지고 원래 파일 이름을 추측하여(file , strings, what 등의 명령어를 이용하여 originalfile 을 추측) 원위치에 복사한다.
- “lost+found” directory가 삭제 되었을 시 mklost+found 명령어로 다시 생성합니다.
그럼~~
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 05-28-2004 10:00 PM
날짜: 05-28-2004 10:00 PM
lost+found 활용방법
윈도우의 휴지통 기능을 원하신다면 쉘 스크립트를 짜는 것도 괜찮겠네요..예를 들어서
vi delete
#!/bin/sh
#
delete_DIR=/tmp/$LOGNAME
if ;then
mkdir $delete_DIR
fi
if ;then
mv "$1" "$delete_DIR"
else
echo "$0: 인수부족"
fi
이런 식으로 쉘 스트립트를 만든다음
.profile 에 alias rm=delete
이런 식으로 하시면 rm 명령어를 휴지통처럼 사용할 수 있을 겁니다..
물론 delete 도 PATH안에 넣어야 겠지요..
^0^
vi delete
#!/bin/sh
#
delete_DIR=/tmp/$LOGNAME
if ;then
mkdir $delete_DIR
fi
if ;then
mv "$1" "$delete_DIR"
else
echo "$0: 인수부족"
fi
이런 식으로 쉘 스트립트를 만든다음
.profile 에 alias rm=delete
이런 식으로 하시면 rm 명령어를 휴지통처럼 사용할 수 있을 겁니다..
물론 delete 도 PATH안에 넣어야 겠지요..
^0^
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
회사
주요 내용 알아보기
뉴스 및 이벤트
© Copyright 2025 Hewlett Packard Enterprise Development LP