Is each of the following an absolute pathname, a relative pathname, or a simple filename?

  1. milk_co

  2. correspond/business/milk_co

  3. /Users/zach

  4. /Users/zach/literature/promo

  5. ..

  6. letter.0610


List the commands you can use to perform these operations:

  1. Make your home directory the working directory

  2. Identify the working directory


If your working directory is /Users/zach with a subdirectory named literature, give three sets of commands that you can use to create a subdirectory named classics under literature. Also give several sets of commands you can use to remove the classics directory and its contents.


The df utility displays all mounted filesystems along with information about each. Use the df utility with the h (human-readable) option to answer the following questions.

  1. How many filesystems are mounted on your Mac OS X system?

  2. Which filesystem stores your home directory?

  3. Assuming that your answer to exercise 4a is two or more, attempt to create a hard link to a file on another filesystem. What error message do you get? What happens when you attempt to create a symbolic link to the file instead?


Suppose you have a file that is linked to a file owned by another user. What can you do so that changes to the file are no longer shared?


What are some of the differences between a Finder alias and a hard link or a symbolic link?


If /Users/max/draft and /Users/zach/letter are links to the same file and the following sequence of events occurs, what will be the date in the opening of the letter?

  1. Zach gives the command vim letter.

  2. Max gives the command vim draft.

  3. Max changes the date in the opening of the letter to January 31, 2006, writes the file, and exits from vim.

  4. Zach changes the date to February 1, 2006, writes the file, and exits from vim.


Suppose that a user belongs to a group that has all permissions on a file named jobs_list, but the user, as the owner of the file, has no permissions. Describe which operations, if any, the user/owner can perform on jobs_list. Which command can the user/owner give that will grant the user all permissions on the file?


Does the root directory have any files that are hidden in the Finder but displayed by ls? Explain why these files might be hidden.


Assume that you are given the directory structure shown in Figure 4-2 on page 73 and the following directory permissions:

d--x--x---  3 max  max  578 Mar 10 15:16 business drwxr-xr-x  2 max  max  578 Mar 10 15:16 business/milk_co 

For each category of permissionsowner, group, and otherwhat happens when you run each of the following commands? Assume that the working directory is the parent of correspond and that the file cheese_co is readable by everyone.

  1. cd correspond/business/milk_co

  2. ls l correspond/business

  3. cat correspond/business/cheese_co


The FAT16 filesystem, also called the MS-DOS filesystem, is inefficient on large disks and imposes stringent filename limits. Why is it important to support this filesystem?


What does the .. entry in a directory point to? What does this entry point to in the root (/) directory?

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