Setting the Drupal config sync directory

Question:
How to set the Drupal config sync directory?

The $settings['config_sync_directory'] is set in the settings.php file.

For example:

$settings['config_sync_directory'] = '/var/www/html/config/sync';
Taxonomy: