This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Date: 3/2/2003 Course: Unix &Unix utilities LINKS & INODES HOMEWORK Note: Some of these questions refer to your hands-on exercises. 1. Answer these as you go through the HARD LINKS exercises: What is the inode# for hello.ltr? The inode number is 183002. Why is the inode number for hiTeach.HL and hiBoss.HL the same? The same one as for hello.ltr, 183002. The link count for hiBoss.HL is 3. This means that you can access the data via 3 filenames. What are they? You can access the data using the hardlinks hiTeach.HL and hiBoss.HL, as well as with the filename hello.ltr. How many actual files are there really on the disk? There is only one file, hello.ltr. Explain what is in each file. hiTeach.HL and hiBoss.HL are hardlinks to the file hello.ltr, those links are basically files in a directory which have the same inode number as hello.ltr. And hello.ltr is the file which contains the actual data. 2. Answer these as you go through the SYMBOLIC LINKS exercises: What is the inode number for play.ltr? Its inode number is 183004. What is the inode number for hiMom.SL? Its inode number is 37272. Why aren't they the same number? Because hiMom.SL is a symbolic link which is a file that contains the path to the file that is linked to, having a different inode number. You can access the data via 2 filenames? What are they? You can access it with the symbolic link hiMom.SL and with the actual file that contains the data, play.ltr. How many actual files are there really on the disk? There are two files, hiMom.SL and play.ltr. Explain what is in each one. hiMom.SL is a symbolic link to the file play.ltr and play.ltr is the file that contains the actual data. Why doesn't rmdir symdir work? Because symdir is a symbolic link to the lect2ex directory and because of that the rmdir cannot function correctly since it is not a directory, but a file....
View Full Document
- Spring '03
- directory, Symbolic link, Inode number, cnt TABLE V-1, type cnt TABLE