UNIXコマンドの「tarコマンド」についての質問です。 ファイルを絶対パスを用いて圧縮をかけた場合圧縮ファイルの展開時に、絶対パスで展開させず相対パスで展開させる方法がわかりません。 UNIXコマンドの「tarコマンド」についての質問です。 ファイルを絶対パスを用いて圧縮をかけた場合圧縮ファイルの展開時に、絶対パスで展開させず相対パスで展開させる方法がわかりません。 test.logを絶対パスを用いて圧縮します。 %pwd /export/home %ls test.log %tar -cvf test.tar /export/home/test.log %ls test.log test.tar %rm test.log %ls test.tar この圧縮ファイルを別ディレクトリに移動 %mv /export/home/test.tar /export/home/test/test.t