sudo tar -xjfv nextcloud-20.0.1.tar.bz2 /var/www/nextcloud/
tar (child): v: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
The f paramerter needs to be the last (paramter for you’re archive) and with -C you can set the directory :
root@nextcloud:~/tmp# tar -xjfv nextcloud-20.0.1.tar.bz2 /root/tmp/
tar (child): v: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@nextcloud:~/tmp# tar -xjvf nextcloud-20.0.1.tar.bz2 -C /root/tmp/
nextcloud/
nextcloud/index.php
...
root@nextcloud:~/tmp#