Directory structure

The directory structure of TwinCAT/BSD is based on the Filesystem Hierarchy Standard (FHS).

Directory structure 1:
TwinCAT/BSD directory structure.

The command cd can be used to navigate to a different directory. cd .. moves up one level in the directory hierarchy, cd /bin moves to the directory /bin. The command ls lists the files in the current directory.

Overview of important TwinCAT/BSD directories.

Directory

Description

/

Root directory and top-level directory hierarchy.

/bin/

Basic user applications for single-user and multi-user environments.

/boot/

Kernel, drivers, programs and configuration files for the boot process.

/dev/

Device nodes, which can be used to access hardware directly, for example.

/etc/

System-relevant scripts and configuration files.

/home/

The users' home directories are located here.

/mnt/

Empty directory; usually serves as a mount point for USB sticks, for example.

/root/

Home directory of the superuser root.

/sbin/

Basic system applications for single-user and multi-user environments.

/usr/

Unix system resources, contains most of the user applications.

/usr/bin

General applications.

/usr/include/

Contains header files for C compilers.

/usr/local/

Local programs and libraries, i.e., software installed by a user, such as software unrelated to the basic FreeBSD system itself.

/usr/local/bin/

Mainly Beckhoff applications

/usr/local/etc/

Configuration files, TwinCAT directory with TwinCAT Functions and PLC project.

/usr/local/include/

Including ADS header files TcAdsDef.h and TcAdsAPI.h

/usr/sbin/

System applications that are executed by the user.

/var/

Variable files, i.e. temporary files with changing content such as log files.

/var/log/

Contains system log files.

Programs that are located in one of the bin or sbin directories can usually be called from the command line without specifying the path. They are defined in the shells as environment variables.