ポジローぽけっと

昨日より今日、今日より明日を信じて、トライトライ

tarでディレクトリ直下をディレクトリを含めず圧縮したかったら

ディレクトリ直下をディレクトリを含めず圧縮したかったら

tar czf hoge.tar.gz -C /path/to/directory .

解凍先ディレクトリを指定して解凍したかったら

tar xzf hoge.tar.gz -C /path/to/directory

参考

gzip - How do I tar a directory of files and folders without including the directory itself? - Stack Overflow