On Sun, 18 Sep 2022 12:59:21 +0100 jr <creature.eter...@gmail.com> wrote:
> I hope someone can help me to make 'tar' "behave" as expected. tia. > > when I create an archive with '-cvWf' I'm used to finding only the > files specified, but every time I use 'tar' on this Debian, there is > a "link" for each and every file. why? eg: > -rw------- jr/jr 256 2022-06-1 22:10 .config/pulse/cookie > hrw------- jr/jr 0 2022-06-12 22:10 .config/pulse/cookie link to > .config/pulse/cookie Well, just for the halibut I did the same, and did not get the links. This may be a silly question, but did you check to be sure that those symlinks aren't in the original file system? 'ls -al' should show any symlinks. charles@hawk:~/versioned/tle$ ll total 40 drwxr-xr-x 3 charles charles 4096 Sep 14 11:57 ./ drwxr-xr-x 15 charles charles 4096 Aug 3 12:41 ../ drwxr-xr-x 8 charles charles 4096 Sep 14 11:59 .git/ -rwxr--r-- 1 charles charles 374 Aug 1 13:48 install.sh* -rwxr--r-- 1 charles charles 1210 Jul 17 08:13 tle.compose.announce.sh* -rwxr--r-- 1 charles charles 1277 Jul 8 14:01 tledate.sh* -rwxr--r-- 1 charles charles 3742 Aug 23 14:29 tlenew.archive.index.sh* -rwxr--r-- 1 charles charles 4901 Sep 14 11:57 tlenew.page.sh* -rwxr--r-- 1 charles charles 3787 Sep 12 13:23 tlenew.week.sh* charles@hawk:~/versioned/tle$ tar -cvWf ../test.tar *.sh install.sh tle.compose.announce.sh tledate.sh tlenew.archive.index.sh tlenew.page.sh tlenew.week.sh Verify install.sh Verify tle.compose.announce.sh Verify tledate.sh Verify tlenew.archive.index.sh Verify tlenew.page.sh Verify tlenew.week.sh charles@hawk:~/versioned/tle$ tar tvf ../test.tar -rwxr--r-- charles/charles 374 2022-08-01 13:48 install.sh -rwxr--r-- charles/charles 1210 2022-07-17 08:13 tle.compose.announce.sh -rwxr--r-- charles/charles 1277 2022-07-08 14:01 tledate.sh -rwxr--r-- charles/charles 3742 2022-08-23 14:29 tlenew.archive.index.sh -rwxr--r-- charles/charles 4901 2022-09-14 11:57 tlenew.page.sh -rwxr--r-- charles/charles 3787 2022-09-12 13:23 tlenew.week.sh charles@hawk:~/versioned/tle$ tar --version tar (GNU tar) 1.34 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. charles@hawk:~/versioned/tle$ Also on Debian 11 as updated. The underlying file system is ext4. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/