Celeb Glow
general | March 11, 2026

Why !includedir means import file?

cat /etc/mysql/mariadb.cnf
# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/ 

The comment means that !includedir can import files which near it. Why !includedir means that ? There is no command includedir in bash!Does ! means execute?

1 Answer

!includedir is not a Bash command. Remember that you are looking at a configuration file from MariaDB. This file is not even supposed to be interpreted by Bash, but will be read by MariaDB when it starts up.

If you read the MariaDB documentation, you'll see that it's unique to MariaDB's option file syntax:

The !includedir directive can be used to include all .cnf files (and potentially .ini files) in a given directory. The option files within the directory are read in alphabetical order.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy