- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- tar 명령어 관련 문의 드립니다.
HP-UX
1825001
회원
2674
온라인
109678
솔루션
포럼
범주
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
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 10-15-2009 02:22 AM
날짜: 10-15-2009 02:22 AM
tar 명령어 관련 문의 드립니다.
안녕하세요. tar 명령어 관련해서 문의 드립니다 .
제가 특정 폴더에 있는 파일을 tar로 묶어서 다른 특정 폴더에 풀어 놓으려고 합니다. 예를 들면..
1.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar ./* <= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
2.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar * <= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
3.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar /tmp/HP<= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
특정한 디렉토리에 있는 파일들을 tar 로 묶어서 다른 특정한 디렉토리에 풀고 싶은데요.. 인터넷 찾아보면 -C옵션을 주면 된다고 해서 넣어보고 빼고 해보기도 했는데 안되네요..
고수님들 도움 부탁드립니다.
제가 특정 폴더에 있는 파일을 tar로 묶어서 다른 특정 폴더에 풀어 놓으려고 합니다. 예를 들면..
1.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar ./* <= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
2.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar * <= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
3.
# a b c <= 3개의 파일이 있습니다.
# tar cvf test.tar /tmp/HP<= tar로묶습니다.
# tar xvf test.tar -C /tmp/UX <= 특정폴더에 풀어 놓으려고함. 하지만 안됨.
특정한 디렉토리에 있는 파일들을 tar 로 묶어서 다른 특정한 디렉토리에 풀고 싶은데요.. 인터넷 찾아보면 -C옵션을 주면 된다고 해서 넣어보고 빼고 해보기도 했는데 안되네요..
고수님들 도움 부탁드립니다.
3 응답 3
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 10-15-2009 05:29 AM
날짜: 10-15-2009 05:29 AM
tar 명령어 관련 문의 드립니다.
이렇게 하면 원하는 결과 얻어질거 같습니다.
# tar xvf test.tar -C /tmp/UX 대신
#cd /tmp/UX;tar xvf /tmp/test.tar
이렇게 하면 원하시는 디렉토리에 푸는게 가능할겁니다.
# tar xvf test.tar -C /tmp/UX 대신
#cd /tmp/UX;tar xvf /tmp/test.tar
이렇게 하면 원하시는 디렉토리에 푸는게 가능할겁니다.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 10-16-2009 12:00 AM
날짜: 10-16-2009 12:00 AM
tar 명령어 관련 문의 드립니다.
-C option is used with -c option as below.
#tar -cvf test.tar -C /tmp/a . -C /tmp/b .
test.tar have files in a and b directory.
There is no option for what you want to do.
Sorry for writing in English. My PC doesn't support to write in Korean.
Cheers,
#tar -cvf test.tar -C /tmp/a . -C /tmp/b .
test.tar have files in a and b directory.
There is no option for what you want to do.
Sorry for writing in English. My PC doesn't support to write in Korean.
Cheers,
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
회사
주요 내용 알아보기
뉴스 및 이벤트
© Copyright 2025 Hewlett Packard Enterprise Development LP