You can produce a list of files in this directory with the find command, e.g.,
find /usr/include -print > ~/files.txt
will create a file called files.txt that contains the names of the files in /usr/include. You may find it more handy to store the file names in a shell variable, e.g.
set flist = `find /usr/include -print`
You can then use wc with the -c switch to find the character lengths of the files, e.g.,
foreach f ($flist)
wc -c $f
You may need to write a simple program that computes the percentage of space lost to fragmentation. Or, if you are facile with spreadsheets, you may find them a good tool to perform this computation.
11.8 In what situations would using memory as a RAM disk be more useful than using it as a disk cache?
The zip program puts one or more compressed files into a single zip archive, along with information about the files (name, path, date, time of last modification, protection, and check information to verify file integrity).
When the file is restored, it is given the same name, time of last modification, protection, and so on. If desired, it can even be put into the same directory in which it was originally located.
If desired, can the file be restored into the same inode? If you don't know, think about it. Explain your answer.