Nt1430 Essay

988 Words4 Pages
5 Answers to Even-Numbered Exercises 2. How can you keep other users from using write to communicate with you? Why would you want to? 1. Which commands can you use to determine who is logged in on a specific terminal? Give the command mesg n to keep ordinary users from writing to your terminal. You can take this action when you do not want to be disturbed or when you are viewing something on your screen that you do not want overwritten. 4. How can you find out which utilities are available on your system for editing files? Which utilities are available for editing on your system? 3. What happens when you give the following commands if the file named done already exists? Give the command apropos editor. Typical editors are vim, ex, ed, and gedit. 6. What happens when you use diff to compare two binary files that are not identical? (You can use gzip to create the binary files.) Explain why the diff output for binary files is different from the diff output for ASCII files. 5. How can you find the phone number for Ace Electronics in a file named phone that contains a list of names and phone numbers? Which command can you use to display the entire file in alphabetical order? How can you remove adjacent duplicate lines from the file? How can you remove all duplicates? When you compare binary files with diff, the utility displays a message saying the files differ when the files differ or no message when the files are the same. The diff utility compares ASCII files on a line-by-line basis; it is not designed to compare binary files on a byte-by-byte basis. Use cmp to compare binary files in that manner. 8. What is the result of giving the which utility the name of a command that resides in a directory that is not in your search path? 7. Create a .plan file in your home directory. Does finger display the contents of your .plan file? The which utility
Open Document