Chapter 5 Questions

591 Words3 Pages
Chapter 5 Questions 1. Which commands can you use to determine who is logged in on a specific terminal? finger, w, who, whoami, who am i 2. How can you keep other users from using write to communicate with you? Why would you want to? By using the mesg n command it will prevent users from having the write to communicate. You would use this if you did not want to be disturbed or to prevent overwriting on your screen. 3. What happens when you give the following commands if the file named done already exists? $ cp to_do done Will make a copy of the file done a name it to_do $mv to_do done Will replace the done file done and erase the original and name it to_do 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? Use the command apropos editor / vim, ex, ed 5.…show more content…
How can you find the phone number for Ace Electrics in a file named phone that contains a list of names and phone numbers? grep “Ace Electronics” phone Which command can you use to display the entire file in alphabetical order? sort phone $How can you display the file without any adjacent duplicate lines? uniq phone How can you display the file without any duplicate lines? sort –u phone 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. It displays the differences between the two files comparing the versions of the source code. The ASCII files are compared line-by-line while the binary files are compared

More about Chapter 5 Questions

Open Document