[질문]tar 옵션에서 빈 디렉토리까지 압축하는 방법?

debinux의 이미지

tar cvzpf 디렉토리
이렇게 하면 압축이 되긴 되는데 하위 디렉토리중에서 아무런 파일이 없고 빈 디렉토리만 있을 경우 그 폴더만 생략하게 됩니다.
그 구조 그대로 압축하려면 어떻게 하나요??

랜덤여신의 이미지

음... 방금 테스트 해 본 결과... 빈 디렉토리도 잘 압축하는데요?

tar 버전은

barosl@peorth:~/work/tmp/tmp$ tar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.