Path names in Interix

UNIX systems have a file system with a single, top-level directory called the root directory. The root directory, which is referred to with a forward slash (/), contains both files and subdirectories. All files in the file system are located below the root directory (/).

In the Interix environment, the root directory is mapped to a specific directory on your Windows file system, which would be either a file-allocation table (FAT) file system, or, more likely, an NTFS file system. The Interix root directory is mapped to the directory in which you installed Windows Services for UNIX, which is normally C:\SFU.

When you view the contents of the root directory with a command such as ls /, you will see the files and directories that are in C:\SFU. Many of these files and directories, such as /etc and /usr, would normally appear on a UNIX system. Since / is treated in a special way by Interix, it also contains other files and directories (virtual files). These are described in the following table:

Virtual directories under the Interix root directory
Directory Contents
/dev Devices such as /dev/null, /dev/tty, and /dev/tape. All Windows logical drives can be accessed as /dev/fs/A through /dev/fs/Z.
/net

The /net virtual directory provides a mechanism for accessing files on the network that is similar to the Windows Universal Naming Convention (UNC). For example, the file \\Saturn\marketing\report.xls can be referred to in Interix as /net/Saturn/marketing/report.xls.

Directories under /net represent the names of computers in the network. Printers and other networked devices are not represented with a directory.

/proc Contains information for each process. For example, suppose that you run and suspend the ping command. You then run ps and see that its process identifier (PID) is 9601. If you run ls /proc/9601 you will see the files cmdline, environ, psinfo, stat, and status, all of which contain detailed information about process 9601.