For example, run the following as root or through sudo:
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
This assumes that the user is on Linux distribution that use GNU tar (busybox?) and use sudo (doas?).
It should not mention about sudo and the example code should not assume GNU tar.
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gzThis assumes that the user is on Linux distribution that use GNU tar (busybox?) and use sudo (doas?).
It should not mention about sudo and the example code should not assume GNU tar.