Submittinga text entry box, a media recording, or a file upload
Create a linux directory tree
The task is to create a directory tree and populate it with specific files, then wrap up the entire tree as a "tarball" and finally copy the tarball with proper permissions to the hw2 submission directory on aurora.
The tree should have the following structure:
call the top directory MNXB01
create subdirectory named 2022HT
create a subdirectory MY_SECRET inside the 2022HT. Set the directory permissions so that only the owner of the directory can access and list the files within
create a text file "my-favourite-place-in-lund" inside MY_SECRET that contains the name of your favourite building, restaurant, park, whatever in Lund.
create another directory named three_files within the 2022HT directory
Inside the three_files directory you should place the following three files
- find a linux comics (cartoons, memes, etc) on the web, download the file using the file's direct URL with wget, then move the downloaded file to the three_files directory.
- place a modified copy of the /etc/services system configuration file. In the modified version the services should be ordered alphabetically and each line should be numbered.
- create a file named "command-history". In this file specify the full command line input, including your prompt, you used a) to download the linux cartoon b) to create the tarball
Once the directory tree is created and populated following the above instructions, create a tarball out of the tree. The root (top) of the tarball should be the MNXB01 directory.
As the final step of the homework, copy the tarball to the homework 2 submission directory on aurora (/projects/hep/fs10/mnxb01/HW2-submission). Set the permissions of the file so that you as the owner can only write (not read or execute) and the owner group can only read (not write and execute) the tarball file., everybody else should have no access to the file (neither read, write or execute). Furthermore, make sure you give a unique recognizable name to your tarball (e.g. your_name_homework2.tgz)
As a submission in Canvas, please specify the full path of the tarball of your homework on aurora.
Strong recommendation: Please do check that your tarball contains the required files (e.g. run the tar -xvf my-tarball) . In previous years many students created "something" then never actually checked the content.