You are on page 1of 4

1.

Use the ls command with the -F option to explore directories described in the
Filesystem Hierarchy Standard starting with /bin. Do you recognize any of the
commands in /bin? Explore several other FHS directories and note their contents.
Refer to Table 4-1 for a list of directories to explore. Further, visit
http://refspecs.linuxfoundation.org/fhs.shtml and read about the Filesystem Hierarchy
Standard. What benefits does it offer Linux?

The benefits is that the FHS should provide a standardized file system layout across
various UNIX-like operating system. This would mean that users and developers alike
how exactly where to find which files.
2. Write the commands required for the following tasks. Try out each command on
your system to ensure that it is correct:

a. Make a hierarchical directory structure under /root that consists of one directory

containing three subdirectories.

b. Copy two files into each of the subdirectories.

c. Create one more directory with three subdirectories beneath it and move files from

the subdirectories containing them to the counterparts you just created.


d. Hard-link three of the files. Examine their inodes.

e. Symbolically link two of the files and examine their link count and inode information.

f. Make symbolic links from your home directory to two directories in this structure

and examine the results.

g. Delete the symbolic links in your home directory and the directory structure you

created under /root.

You might also like