Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In your home directory on atlas, create a directory called assign1 . Regular files have extensions such as .txt and .mp3. Directories do not In

In your home directory on atlas, create a directory called assign1. Regular files have extensions such as .txt and .mp3. Directories do not

In this directory, create a file structure that resembles the following image, but makes substitutions as requested below:

Substitute your grandmas actual name for grandma

Substitute your moms name for mom

For each child of you mothers, including yourself, create a directory with that persons name. So if are your mothers only child, then put your name there. If you have brothers or sisters, create a directory for each one of them as subdirectory of your mother.

For cat1, cat2 and cat3, substitute with your favourite categories of music. Have between 3 and 5 categories. For instance, rap, bhangra, hiphop, rock etc

For artist1, artist2 etc, substitute with your favourite artist or band name within that category. For instance drake, beatles, Metallica, Panjabi MC. Have between 2 and 4 artists

For 2-3 song.mp3 files place your favorite songs from that artist in that category. So if you like take care form drake, name the file takecare.mp3 do this for some songs from the artists you chose. So, the name of your file should not be song1.mp3. Have between 1 and 3 songs

In the file aboutme.txt, include some information about you, write 100 words or more. Put in information such as name address etc, personal interests etc. You can verify how many words you wrote with the wc command

On the file secret.txt, place some sort of private information that is fake.

Note the tree is a reference. If you literally replicate the tree above without the changes, you lose 3 out of 4 marks. If you make mistakes, fix them by removing the incorrect files/directories or moving them to the correct spot. You will lose marks if your directory does not follow the same hierarchy.

(5 marks) from the assign1 directory, run the tree command, take a screen shot, and paste it here.

Note the security setting below, ensure your files in the assign directory have the same security settings

(1 marks) run the ls -l command from your assign1 directory, take a screen shot and paste it below. Ensure your security settings are the same!

What is the umask command so that any future directories you create would have the security setting rwx-wxr-x

What is the command? (1 mark) : Write the command here _________________________

Run this umask command and then enter the command mkdir dira

Change your pwd to whoever is your favorite artist. Then:

What is the command to create a directory favourite as subdirectory of music?

Write the command here _______________________________ and then execute it on atlas

Copy all songs in your pwd that end in .mp3 to the favourite directory. Write the command here and then execute it on atlas. _________________

Copy the file secret.txt to your subdirectory in family. Ie, the one which is the subdirectory of your mother. What is the command? ________________ Execute it on atlas.

Return to your assign1 pwd and then run the tree command. Take a screen shot and paste it here.

Question 4 is work 2 marks

(1 mark) Redirect the output of cat aboutme.txt to a file called submission located in your subdirectory of your mother. (the one with your name) Using relative to home path, what is the command to output the content of file submission to the screen? Write it here _______________________________________

Run this command and cut and paste the result here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions