Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC 3320 Unix. Please solve according to the steps. you can use command line Homework 1 You can use snowball.cs.gsu.edu, or you can use any
CSC 3320 Unix. Please solve according to the steps. you can use command line
Homework 1 You can use snowball.cs.gsu.edu, or you can use any other unix system that you have access to. 1. Create the following directory structure: hw1 - people -bad good ugly places cities - states Hint: there's an option to mkdir that will let you do this in one command. 2. Create the following files: hw1/people/ugly/Tuco hw1/people/bad/facebook hw1/people/good/quokkas hw1/places/states/Alaska hw1/places/states/Georgia hw1/places/cities/Atlanta hw1/places/cities/Perth 3. Let's get a look at this directory structure. Move into the hwn directory and use is to get a listing. Make sure that is is used recursively so that we see the whole directory structure, and make sure that you get a long listing so that we can see the file owners. Save the output of ls to first_contents.txt. Reminder: you can use either man ls or ls --help to get information about ls's options, and you can capture a program's output in a file by putting > file at the end (for example, ps > processes.txt). 4. Verify that first_contents.txt contains what you want it to contain by opening it with less. Make a new directory, 5. Quokkas are adorable, but they're not people per se. hw1/animals/adorable/, and move the quokkas file into it. 6. The good directory is now empty; delete it. (Reminder: you can use either rm or rmdir to do this.) 7. We might also be judging facebook employees a little to harshly; use rm to delete the bad/ directory. (Hint: you can use rm to do this even though the directory isn't empty, but be very careful when using rm this way.) 8. Get a final content listing; do this the same way you did in Problem 19, but save the output in last_contents.txt. 9. Finally, change to the hw1/ directory (if you aren't already there) and run history -a hw1_history.txt; then, change into the directory that has hw1/ in it, and run tar -cf hw1. tar hw1/ Finally, download hw1.tar and turn it inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started