Forum Navigation
You need to log in to create posts and topics.

Extract files using tar and override specific directory

User wants to extract the archive and upgrade current installation of wordpress or any other

when using tar xf command it puts everything in a directory called wordpress-5.1.1, all the files and subdirectories of that directory to overwrite (and add to) the existing wordpress directory.


extract using the following command

tar –strip=1 -zx -f wordpress-5.1.1.tar.gz -C wordpress