bonk is a small command-line utility for creating files and directories with minimal effort.
It was developed as an alternative to the file-creation functionality of the traditional touch command. Its author wanted a simple utility that would behave consistently across operating systems, particularly when working in environments where familiar Unix commands are not readily available.
The main attraction of bonk is its ability to create an entire directory structure when given a file path. For example, specifying a file inside a directory that does not exist causes bonk to create the missing directories before creating the file.
It can also create directories directly, allowing users to perform common file and directory creation tasks with the same command.
Unlike the conventional touch command, bonk does not update the timestamps of existing files. Its focus is on creating files and directories rather than manipulating file metadata.
This is free and open source software.
Key Features
- Creates empty files from the command line.
- Supports creating multiple files in a single invocation.
- Automatically creates missing parent directories when specifying nested file paths.
- Creates directories directly when the supplied path ends with a directory separator.
- Supports creating multiple levels of nested directories.
- Leaves existing file contents unchanged.
- Accepts relative and absolute filesystem paths.
- Provides command-line help and version information.
- Cross-platform support – runs on Linux and Windows.
Website: github.com/elliot40404/bonk
Support:
Developer: Elliot
License: MIT License

bonk is written in Rust. Learn Rust with our recommended free books and free tutorials.
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.