Archive the Project

Linux lab Beginner 4 tasks 10 points

The project folder is ready to ship. Bundle it into a compressed archive, check what's inside, and practise unpacking it somewhere safe.

How it works: the terminal below is a real Linux machine running in your browser. Click it and type. Tasks tick themselves off as you complete them; questions are answered in the box under each task. Press Reset any time for a fresh machine. Your password on this machine (for sudo) is student.

student@vulntech:~ Starting…
Getting your Linux machine ready…
The first start downloads about 20 MB. After that your browser keeps it, and labs start in a moment.

Hints

-c create, -t list, -x extract; f names the file, z adds gzip.

Solution explanation

tar -cf bundles the folder; adding z also gzips it, so project.tar.gz is smaller. tar -tf lists the contents without unpacking, and tar -xzf ... -C restore extracts the compressed archive into the empty folder.

Show solution
tar -cvf project.tar project
tar -czvf project.tar.gz project
tar -tf project.tar | wc -l
mkdir restore
tar -xzf project.tar.gz -C restore
ls restore/project
HOME LEARN COMMUNITY DASHBOARD