Question: 1. What command shows the present working directory? What output does that command display after you login to matrix and run it. A: IMPORTANT:



1. What command shows the present working directory? What output does that command display after you login to matrix and run it. A: IMPORTANT: For each question, assume: you are logged in to matrix using your MySeneca username your pwd is /var directory below remains the same for each question, even if a previous answer changed it -- -- A: public_html/ -X- 2. Write a command line to backup index.html from public_html into images directory. The backed up file should be your matrix username.html. For example, if your username is jbond007 then upon completion directory images has the file jbond007.html in it with the contents from index.html. For full credit, write another command line and its output to show the previous command completed successfully (3 Marks). A: |-- images/ --index.html rough_work/ -X- 3. Your pwd is /var, using the shortest path write a command line to delete directory rough_work. A: -X- 4. Using relative to home path, give everyone pass-through permissions to public_html (cannot list or remove files). -X- A: A: This utility converts lower case to upper case B. grep D. None of the above (write the command needed) -X- 6. This utility removes directories only if they are empty A: cat convert A. rm C. rmdir -X- 7. This utility shows lines in a file that do not match a given string pattern A: A. find C. search A: -X- 8. From the following, this utility cannot display the contents of a file B. del D. None of the above (write the command needed) A. cat C. vim SHORT ANSWER B. locate D. None of the above (write the command needed) B. echo D. less 9. [2 Marks] Describe the octal number system, explain its use for permissions in Linux. Using two command lines (one for a file, the other for a directory) show and explain how octal is used. cofogunyoyin@mtrx-node01 pd:~ == SHORT ANSWER == 9. [2 Marks] Describe the octal number system, explain its use for permissions in Linux. Using two command lines (one for a file, the other for a directory) show and explain how octal is used. A: -X- 10. [2 Marks] Write the output of this command line when it is run on matrix. In your own words, creatively yet correctly explain what this command line does. find /var/log -size +1M 2> /dev/null | sort -r | tail -3 A: -X- 11. (2 Marks) When trying to remove hello.txt in your pwd, you see the error message: 'Permission denied'. What might have happened and write a command line to fix the problem. A: -X- 12. (2 Marks) A friend asks you for an explanation of either the umask or the tee command. Choose one and write in your own words what umask or tee does. In your answer, use a command line with its output and an explanation of the output. A: 13. (2 Marks) Using three or more examples what surprised or shocked you when you began learning Linux through ULI101 at Seneca College. A: [ xxXxx ] #vim: fileformat-unix: filetype-asciidoc:nospell:textwidth=100:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
