レス
元トピ
次レスタイトル
Re: 問題:34260
フォーラム
最強WEB問題集LinuC/LPIC Lv1 101
投稿ユーザ(投稿日)
(2019/5/28)本文
-----引用(始)-----
他サイトにて、
(略)
との解説を見たのですが、選択肢一番上の「tar xfJ test.tar.xz」は正しいのでしょうか?
-----引用(終)-----
「他サイト」の解説をベースに話をされても、どこのサイトか、前提バージョンはなにか、など全く情報がないのでどうしようもないですね。
とりあえず、参考までに私の手元のCentOS7環境でやった結果をつけておきます。
[code]
# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
使用許諾 GPLv3+: GNU GPL version 3 またはそれ以降
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[参考訳]
これはフリーソフトウェアです. 変更と再配布は自由です.
法律で認められる範囲で「無保証」です.
作者: John Gilmore, Jay Fenlason.
# for i in $(seq 1 9); do touch file$i; done
# ls
file1 file2 file3 file4 file5 file6 file7 file8 file9
# tar cfJ files.tar.xz file[1-9]
# ls
file1 file2 file3 file4 file5 file6 file7 file8 file9 files.tar.xz
# rm -f file[1-9]
# ls
files.tar.xz
# tar tfvJ files.tar.xz
-rw-r--r-- root/root 0 2019-05-28 16:28 file1
-rw-r--r-- root/root 0 2019-05-28 16:28 file2
-rw-r--r-- root/root 0 2019-05-28 16:28 file3
-rw-r--r-- root/root 0 2019-05-28 16:28 file4
-rw-r--r-- root/root 0 2019-05-28 16:28 file5
-rw-r--r-- root/root 0 2019-05-28 16:28 file6
-rw-r--r-- root/root 0 2019-05-28 16:28 file7
-rw-r--r-- root/root 0 2019-05-28 16:28 file8
-rw-r--r-- root/root 0 2019-05-28 16:28 file9
# tar xfJ files.tar.xz
# ls
file1 file2 file3 file4 file5 file6 file7 file8 file9 files.tar.xz
[/code]
レス一覧
元トピ
次レス
Copyright (c) 2010
Ping-t All rights reserved.