- #!/bin/bash
-
- mkdir /home/ubuntu/dir
- mkdir /home/ubuntu/dir/dir1 /home/ubuntu/dir/dir2
- cp ./* /home/ubuntu/dir/dir1
- cp ./*.sh /home/ubuntu/dir/dir2
- cd /home/ubuntu/dir
- tar -cJf dir2.tar.xz dir2
- mv dir2.tar.xz dir1
- cd ./dir1
- tar -xvf dir2.tar.xz
- tree /home/ubuntu/dir