Starting from:
$30

$24

Software Tools and Systems Programming ASSIGNMENT 1 SOLUTION




Answer the following questions.



What is an operating system?



What is a kernel of an operating system?



What is a shell in Unix?



假设

2. For this question, we assume that you are in directory ∼/Courses/CS2211a/Asns/asn1 (and, of course, all the directories along the path exist). In this directory, create two direc-tories, dir0 and dir1 and two files df0 and df1. In dir0 create a file dir0. What command do you use to create a directory? What command do you use to create a file?




3. Answer the following questions for the use of ls command. And then demonstrate your answers by typing the appropriate command and capture the screen with script command as-suming that you are in directory ∼/Courses/CS2211a/Asns/asn1. For this question, please use /usr/bin/ls in compute.gaul.csd.uwo.ca.




a. What option(s) should we use if we want to display permission information?




b. What option(s) should we add to ls di* to display permission information of dir0 and dir1 but not their contents?




c. What is the result of ls * and why?




d. What is the result of ls ** and why?




4. Answer the following questions for the use of find command. And then demonstrate your answers by typing the appropriate command and capture the screen with script command assuming that you are in ∼/Courses/CS2211a.




a. What option(s) should we use if we want to display recursively all the directory names?




b. What option(s) should we use if we want to display recursively all the files (but not directory) whose name start with d?




c. What option(s) should we use if we want to display all the files that have been written (created or modified) within the last 48 hours? (hint: check mtime option of find command)







1

More products