CS 497C - Homework 3 - Name:_________________ DUE: Wednesday, October 10 (in class) Please show all work on a separate sheet attached to this sheet. (50 points - 5 points for each problem) 1. How do you change the contents of the current line completely in vi? How are d and y different from the Command Mode commands in vi? 2. How do you noniteractively and globally replace Basic with Java in all lines of a file in vi? How do you delete text from the current line to the beginning of the file? 3. Name three ways of quitting vi and saving the file. 4. What does the U command in vi do? When will it fail to work? 5. Can you create a file whose filename is . or ..? Will mv bar1 bar2 work if bar1 and bar2 are directories? Give both questions a short explanation. 6. Discuss three ways of knowing your home directory. 7. When will you be compelled to run a command like this - ./update.sh instead of update.sh? 8. Which commands do you use for printing, removing printing jobs, and checking the number of the printing job in Linux systems which we use in the Computer Science Department? 9. How do the df and du commands differ? How do you find out the total disk usage of the current directory tree? 10. You have a complete directory structure to send to someone. Which command will you use to archive and compress the directory trees?