Submitted by
Dmitro
on
Create archive:
tar -czvf theme.tgz theme_directory
v - to show process
To unarchive:
tar -xvf theme.tgz
To copy file to the server with SCP:
scp theme.tgz ubuntu@10.10.0.1:/var/www/drupal/web/themes/
Add the user ubuntu
to the www-data
group:
sudo usermod -a -G www-data ubuntu
Verify that the users have been added to the group:
groups ubuntu
The following command list all directory names in a directory in one line, separated by spaces:
ls -d */ | cut -f1 -d'/' | paste -sd " " -