< Day Day Up > 


What is an inode? What happens to the inode when you move a file within a filesystem?


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


How can you create a file named i? Which techniques do not work, and why do they not work? How can you remove the file named i?


Suppose that the working directory contains a single file named andor. What error message do you get when you run the following command line?

 $ mv andor and\/or  

Under what circumstances is it possible to run the command without producing an error?


The ls i command displays a filename preceded by the inode number of the file (page 99). Write a command to output inode/filename pairs for the files in the working directory, sorted by inode number. (Hint: Use a pipe.)


Do you think that the system administrator has access to a program that can decode user passwords? Why or why not (see exercise 6)?


Is it possible to distinguish a file from a hard link to a file? That is, given a filename, can you tell whether it was created using an ln command? Explain.


Explain the error messages displayed in the following sequence of commands:

 $ ls -l total 1 drwxrwxr-x   2 alex pubs 1024 Mar  2 17:57 dirtmp $ ls dirtmp $ rmdir dirtmp rmdir: dirtmp: Directory not empty $ rm dirtmp/* rm: No match. 

     < Day Day Up > 

    A Practical Guide to LinuxR Commands, Editors, and Shell Programming
    A Practical Guide to LinuxR Commands, Editors, and Shell Programming
    ISBN: 131478230
    EAN: N/A
    Year: 2005
    Pages: 213 © 2008-2017.
    If you may any questions please contact us: