From the course: CompTIA SecurityX (CAS-005) Cert Prep

Configuration files

- This lesson's all about configuration files. Let's start with YAML. YAML which could stand for a couple of things. YAML (Ain't Markup Language) or (Yet Another Markup Language) is a human-readable data serialization format. We also call this semi-structured data. And it's easy for both humans and machines to read and write. It's often used for configuration files, data exchange between languages, and in applications where data is stored or transmitted. Here's an example of a YAML configuration file. In this example, the file defines settings for a database connection, including the host: localhost, the port: 5432, and a username and password. eXtensible Markup Language (XML) is a markup language that defines rules for encoding documents in a format that's both human-readable and machine-readable. It's used primarily to store and transport data. Here's a simple example that defines a server configuration with the host name, port number 8080, protocol, and timeout settings. For example, 30. JavaScript Object Notation or JSON is a lightweight data interchange format that's easy for both humans and machines to read and write. It's based on a subset of the JavaScript programming language, and is a very common option for constructing application programming interfaces. Here's a simple example of JSON. This configuration file defines a network with a name, MyNetwork, subnet, gateway and DNS servers at 8.8.8.8 and 8.8.4.4. There's also Tom's Obvious Minimal Language, TOML or T-O-M-L. This is a configuration file format that's really easy to read due to its simple syntax. It's often used for configuration files, data serialization, and other purposes where human readability is important. Here's a simple example of a TOML configuration file for a Linux host.

Contents