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 104). Write a command to output inode/filename pairs for the files in the working directory, sorted by inode number. (Hint: Use a pipe.)
Explain the error messages displayed in the following sequence of commands:
$ ls -l total 0 drwxrwxr-x 3 zach zach 102 Mar 2 17:57 dirtmp $ ls dirtmp $ rmdir dirtmp rmdir: dirtmp: Directory not empty $ rm dirtmp/* rm: dirtmp/*: No such file or directory
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.