> For the complete documentation index, see [llms.txt](https://doane-ccla.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doane-ccla.gitbook.io/docs/learning-linux/system-config.md).

# System Configuration

* **hostname: displays the name of the computer**

  ```bash
  hostname
  ```

  *It will show the current name of the machine.*

  To change the hostname, please type `hostnamectl set-hostname <new_name>`, and for additional configuration, the file is located at `/etc/hostname`.
* **dmidecode: gives information about the hardware and detects if it is a virtual machine**

  ```bash
  dmidecode
  ```

  *The information includes manufacturer, model, serial number, asset tags, CPU sockets, PCI slots, DIMM slots, and other I/O port info detected by the BIOS.*
* **uname: displays system information about the Linux environment**

  ```bash
  uname -v
  ```

  *It will show you the version of the Linux kernel you are running.*

  If you want to know the hardware platform, such as x86\_64 or 32-bits, please run `uname -i`. If you need more details about the software, please run `uname -a`.
* **free: check the used and available space of physical memory and swap memory**

  ```bash
  free -g
  ```

  *It will display the size of the memory in GB (Gigabytes).*

  If you want to display the total line of the memory resource used, please run `free -t` or do `cat /proc/meminfo`.
* **lscpu: shows CPU architecture information**

  ```bash
  lscpu
  ```

  *It will show the vendor of the CPU, as well as the GHz, cores per socket, etc.*

  You can view the information of your system CPU by viewing the content of the `/proc/cpuinfo`.
* **top: shows statistical data related to the performance of a system and is updated every 5 seconds**

  ```bash
  top
  ```

  *It will display a real-time view of the performance data of all running processes in a system.*

  To sort by the use of CPU, type `P`, or if you want to sort by the use of memory, please type `M`, and `u` to view processes owned by a specific user. Press `q` to quit.
* **iostat: lists CPU utilization, device utilization, and network file system utilization considered since the last reboot**

  ```bash
  iostat -C
  ```

  *It will display to columns: **NAME** and **Comments** in the* `/tmp/data_tab.txt` *file.*

  It will break the CPU utilization into user processes, system processes, I/O wait, and idle time.
* **uptime: gives you the time for which the system has been up (or running)**

  ```bash
  uptime
  ```

  *It will display the current time, how long the system has been running, users currently logged on, and the system load averages for the past 1, 5, and 15 minutes*.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doane-ccla.gitbook.io/docs/learning-linux/system-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
