# cfdisk

> Linux partition editor part of the util-linux package with a curses-based user interface

**Wikidata**: [Q1051094](https://www.wikidata.org/wiki/Q1051094)  
**Wikipedia**: [English](https://en.wikipedia.org/wiki/Cfdisk)  
**Source**: https://4ort.xyz/entity/cfdisk

## Summary
**cfdisk** is a Linux partition editor included in the util-linux package. It is distinguished by its curses-based user interface, which provides a visual method for managing disk partitions within a terminal. The software is classified as free software and serves as a utility for end-users to configure storage devices.

## Key Facts
- **Inception:** cfdisk was created in **1992**.
- **Software Type:** It is an **application** and **free software**, meaning it can be freely run, studied, changed, and distributed.
- **Package:** It is a core component of the **util-linux** package.
- **Interface:** The tool uses a **curses-based user interface** (Text-based UI).
- **Dependency:** It depends on the **ncurses** library, which also serves as its GUI toolkit/framework.
- **Version History:** A documented version of the software is **2.12r**.
- **Language Availability:** Wikipedia entries for cfdisk exist in 10 languages, including English, German, Spanish, French, and Japanese.

## FAQs
### Q: What is cfdisk used for?
A: cfdisk is used to edit disk partitions on Linux systems. It provides a visual, menu-driven interface to create, delete, and modify partition layouts.

### Q: Does cfdisk have a graphical user interface (GUI)?
A: It uses a text-based user interface powered by ncurses (curses), which provides a graphical layout within a command-line terminal rather than a desktop window.

### Q: Is cfdisk free to use?
A: Yes, cfdisk is free software. It is distributed under terms that allow users to run, study, change, and distribute it and any modified versions.

## Why It Matters
cfdisk plays a significant role in Linux system administration by simplifying the complex task of disk management. While many partition tools operate purely through command-line instructions, cfdisk lowers the barrier to entry by providing a visual representation of the disk layout through its curses-based interface. This allows administrators to see partition sizes, types, and free space at a glance, reducing the risk of accidental data loss associated with blind command execution.

As part of the **util-linux** package, it is integrated into a wide array of Linux distributions, making it a standard tool for storage configuration. Its longevity—dating back to **1992**—demonstrates its enduring utility in the open-source ecosystem. By relying on the **ncurses** library, it remains accessible on servers and systems without a heavy graphical desktop environment, ensuring that critical maintenance tasks can be performed even in low-resource or recovery environments. Its status as **free software** ensures that it remains transparent and adaptable for modern hardware changes.

## Notable For
- **Visual Terminal Interface:** Distinguished from purely command-line tools by its interactive, menu-driven curses interface.
- **Standard Inclusion:** Being part of the **util-linux** package, a fundamental collection of system utilities for Linux.
- **Longevity:** A history dating back to **1992**, making it one of the longer-standing tools in the Linux ecosystem.
- **Accessibility:** Functionality as **free software** that is accessible to end-users for studying and modification.

## Body
### Overview and Functionality
cfdisk is a partition editor specifically designed for the Linux operating system. It allows users to view and manage the partition table of a hard disk. The tool is categorized as an **application** designed for end-users and is explicitly defined as **free software**, adhering to the philosophy that users should have the freedom to run, copy, distribute, study, change, and improve the software.

### Technical Implementation
The utility is built upon the **ncurses** programming library. This dependency allows cfdisk to render a **curses-based user interface**, which simulates a graphical display in a text-only terminal environment. This framework acts as the GUI toolkit, enabling interactive elements such as highlighting specific partitions and selecting menu options using keyboard arrows.

### History and Distribution
The software has a documented history beginning with its inception in **1992**. It is distributed as part of **util-linux**, a standard package containing essential system utilities. Specific version history includes a release identified as **version 2.12r**. The tool has achieved international recognition, with documentation and Wikipedia articles available in multiple languages including Catalan, German, English, Spanish, French, Italian, Japanese, Polish, and Portuguese.

## References

1. Freebase Data Dumps. 2013