tar extract 폴더 이름 생략하기

(Last Updated On: May 31, 2020)

extract without first directory

 

a WordPress Latest

wget https://wordpress.org/latest.tar.gz
mkdir my_wordpress_path
tar xzvf latest.tar.gz --strip 1 -C ./my_wordpress_path

 

b PHPMYADMIN 4.9.5

wget https://files.phpmyadmin.net/phpMyAdmin/4.9.5/phpMyAdmin-4.9.5-all-languages.tar.xz
mkdir pma
tar xvf phpMyAdmin-4.9.5-all-languages.tar.xz --strip 1 -C ./pma