Wondering between the two options update and append in tar

Latest response

What is the context for using the "--append" or "--update" option? I checked and its functions are no different

root@sgn-la-huyvl3:~# touch a
root@sgn-la-huyvl3:~# tar -cvf test.tar a
a
root@sgn-la-huyvl3:~# echo 'hello' > a
root@sgn-la-huyvl3:~# tar --append -vf test.tar a
a
root@sgn-la-huyvl3:~# tar --list -vf test.tar
-rw-r--r-- root/root 0 2024-02-08 20:07 a
-rw-r--r-- root/root 6 2024-02-08 20:07 a
root@sgn-la-huyvl3:~# tar --update -vf test.tar a
root@sgn-la-huyvl3:~# tar --list -vf test.tar
-rw-r--r-- root/root 0 2024-02-08 20:07 a
-rw-r--r-- root/root 6 2024-02-08 20:07 a
root@sgn-la-huyvl3:~# echo 'hello1' > a
root@sgn-la-huyvl3:~# tar --update -vf test.tar a
a
root@sgn-la-huyvl3:~# tar --list -vf test.tar
-rw-r--r-- root/root 0 2024-02-08 20:07 a
-rw-r--r-- root/root 6 2024-02-08 20:07 a
-rw-r--r-- root/root 7 2024-02-08 20:08 a
root@sgn-la-huyvl3:~#

Responses