CS 497C - Homework 4 - Name:_________________ DUE: Monday, October 22 (in class) Please show all work on a separate sheet attached to this sheet. (50 points - 5 points for each problem) + (5 bonus points) 1. How do you save a file using the same name in emacs? How do you save a file using a different name in emacs? How can you quit emacs? How can you recover an auto-saved file in the event of a system crash in emacs? 2. How do you delete 10 lines in emacs? How do you undo and redo the editing with the same key in emacs? 3. How do you mark a region, copy it, and put it in the new location in emacs? How do you delete text from the current line to the beginning of the file in emacs? 4. How do you non-interactively and globally replace Basic with Java in emacs? How can you edit a second file without leaving emacs and then toggle between two files? 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. How can you show a complete listing of all files, directories, and those files and directories under these directories in your home directory? How will you list the files of the parent directory? 7. Show two ways to assign the read and write permission to the owner and the read permission to the group and others. 8. Which file attributes change when you copy a file from another user account? 9. What are the two main disadvantages of the hard link? How do you overcome these problems? 10. Use the find command to move all files with the html extension (i.e. *.html) from the current directory to the htdocs directory under the parent directory? 11. Change your current directory to /dev and use ls -Fax. You'll see some files ending with = and |. What are those files? (5 Bonus Points)