Lab - VI: Exploring the Linux File System


In this lab, we will explore the Linux file system using certain relevant commands.

Know the file systems and their mount points

Type the command, mount in a terminal and examine its output. Pick any four lines from the output and explain what they are telling you about the file systems mounted on your computer. In particular, find answers to (1) On what device is the root directory mounted? (2) On what device/file system is your home directory mounted? How much total and free space is available on the system where your home directory is mounted?


Exploring Metadata about a File System

Use the following commands to find out more information about the filesystems mounted on your computer.

Type the command stat . then type the commands ls -li and ls -li .. Examine their outputs. What does the -i option of ls do?

Use the stat and ls -li on different types of files such as a regular file like a C source, executable, directory, symbolic link, device, etc. Briefly explain the differences in the output of stat in each case.

Type the command man 7 hier. What does that tell you about the Linux file system? Does your Debian system have the same directory structure. Name at least one difference with justification.