Exercises


1.

Which commands can you use to determine who is logged in on a specific terminal?

2.

How can you keep other users from using write to communicate with you? Why would you want to?

3.

What happens when you give the following commands if the file named done already exists?

$ cp to_do done $ mv to_do done 


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?

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?

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.

7.

Create a .plan file in your home directory. Does finger on your system display the contents of your .plan file?

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?

9.

Are any of the utilities discussed in this chapter located in more than one directory on your system? If so, which ones?

10.

Experiment by calling the file utility with the names of files in /usr/bin. How many different types of files are there?

11.

Which command can you use to look at the first few lines of a file named status.report? Which command can you use to look at the end of the file?




A Practical Guide to UNIX[r] for Mac OS[r] X Users
A Practical Guide to UNIX for Mac OS X Users
ISBN: 0131863339
EAN: 2147483647
Year: 2005
Pages: 234

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net