スーパーユーザが tar コマンドを使用した時は、コピーされるファイルの UIDとGIDはテープ上のものと同じになりますが、一般ユーザの時は、そのユーザ のUIDとGIDが使用されます。
[student@h006 ~]$ tar cvf bkup.tar test.c prog0.c prog1.c![]()
[student@h006 ~]$ tar rf bkup.tar prog2.c prog3.c![]()
[student@h006 ~]$ tar xzf bkup.tar.gz![]()
[student@h006 ~]$ tar tv![]()
[student@h006 ~]$ cd dir1 [student@h006 ~]$ tar cf - . | ( cd ../dir2; tar xf - )![]()