🏆 Visiting from the "Built with Opus 4.6: a Claude Code hackathon"? See our hackathon submission for the full story.
fcoreutils
High-performance GNU coreutils replacement in Rust — 96 tools and counting. SIMD-accelerated, drop-in compatible, cross-platform.
Performance (independent benchmarks v0.7.1, Linux, hyperfine)
| Tool | Speedup vs GNU | Speedup vs uutils |
|---|---|---|
| wc | 34.2x | 18.8x |
| sort | 16.7x | 15.4x |
| uniq | 15.8x | 6.5x |
| base64 | 7.5x | 6.9x |
| tr | 7.4x | 7.3x |
| cut | 6.7x | 3.7x |
| tac | 3.9x | 1.9x |
| md5sum | 1.4x | 1.3x |
| b2sum | 1.3x | 1.1x |
| sha256sum | 1.0x | 3.9x |
Tools
Performance-Optimized (10 tools, independently benchmarked)
| Tool | Binary | Description |
|---|---|---|
| wc | fwc |
Word, line, char, byte count (SIMD SSE2, single-pass, parallel) |
| cut | fcut |
Field/byte/char extraction (mmap, SIMD) |
| sha256sum | fsha256sum |
SHA-256 checksums (mmap, madvise, readahead, parallel) |
| md5sum | fmd5sum |
MD5 checksums (mmap, batch I/O, parallel hash, batched output) |
| b2sum | fb2sum |
BLAKE2b checksums (mmap, madvise, readahead) |
| base64 | fbase64 |
Base64 encode/decode (SIMD, parallel, fused strip+decode) |
| sort | fsort |
Line sorting (parallel merge sort) |
| tr | ftr |
Character translation (SIMD pshufb compact, AVX2/SSE2, parallel) |
| uniq | funiq |
Filter duplicate lines (mmap, zero-copy, single-pass) |
| tac | ftac |
Reverse file lines (parallel memchr, zero-copy writev, vmsplice) |
Installation
Or build from source:
Binaries are in target/release/.
Usage
Each tool is prefixed with f to avoid conflicts with system utilities:
# Word count (drop-in replacement for wc)
|
# Cut (drop-in replacement for cut)
# Hash tools (drop-in replacements)
# Base64 encode/decode
# Sort, translate, deduplicate, reverse
# File viewing and transformation
# Text formatting
# Set operations on sorted files
Key Optimizations
- Zero-copy mmap: Large files are memory-mapped directly, avoiding copies
- SIMD scanning:
memchrcrate auto-detects AVX2/SSE2/NEON for byte searches - stat-only byte counting:
wc -cusesstat()without reading file content - Hardware-accelerated hashing: sha2 detects SHA-NI, blake2 uses optimized implementations
- SIMD base64: Vectorized encode/decode with 4MB chunked streaming
- Parallel processing: Multi-file hashing and wc use thread pools
- SIMD range translate/delete:
trdetects contiguous byte ranges and uses AVX2/SSE2 SIMD - Chunk-based reverse scan:
tacprocesses backward in 512KB chunks with forward SIMD within each chunk - Optimized release profile: Fat LTO, single codegen unit, abort on panic, stripped binaries
GNU Compatibility
Output is byte-identical to GNU coreutils. All flags are supported including --files0-from, --total, --complement, --check, and correct column alignment.
NOT INCLUDED IN HACKATHON SUBMISSION
Additional Tools (96 tools) — independent compatibility tests v0.7.2: 1593/1724 tests passing (92.4%)
| Tool | Binary | Description | Compatibility | Passed | Failed | Skipped | Total |
|---|---|---|---|---|---|---|---|
| head | fhead |
Output first lines of files (zero-copy mmap, SIMD newline scan) | :white_check_mark: | 47 | 0 | 0 | 47 |
| tail | ftail |
Output last lines of files (reverse SIMD scan, follow mode) | :white_check_mark: | 44 | 0 | 0 | 44 |
| cat | fcat |
Concatenate files (zero-copy splice/sendfile, mmap) | :white_check_mark: | 44 | 0 | 0 | 44 |
| rev | frev |
Reverse lines character-by-character (mmap, SIMD) | :white_check_mark: | 32 | 0 | 0 | 32 |
| expand | fexpand |
Convert tabs to spaces (mmap, configurable tab stops) | :white_check_mark: | 33 | 0 | 0 | 33 |
| unexpand | funexpand |
Convert spaces to tabs (mmap, configurable tab stops) | :white_check_mark: | 26 | 0 | 0 | 26 |
| fold | ffold |
Wrap lines to specified width (mmap, byte/char modes) | :white_check_mark: | 35 | 0 | 0 | 35 |
| paste | fpaste |
Merge lines of files (mmap, serial/parallel modes) | :white_check_mark: | 30 | 0 | 0 | 30 |
| nl | fnl |
Number lines of files (mmap, section delimiters, regex) | :white_check_mark: | 47 | 0 | 0 | 47 |
| comm | fcomm |
Compare sorted files line by line (mmap, SIMD) | :white_check_mark: | 30 | 0 | 0 | 30 |
| join | fjoin |
Join lines of two sorted files on a common field (mmap) | :white_check_mark: | 35 | 0 | 0 | 35 |
| base32 | fbase32 |
RFC 4648 base32 encoding/decoding | :white_check_mark: | 29 | 0 | 0 | 29 |
| basenc | fbasenc |
Multi-format encoder/decoder (base64, base32, base16, base2, z85) | :white_check_mark: | 40 | 0 | 0 | 40 |
| sha1sum | fsha1sum |
SHA-1 checksums | :white_check_mark: | 15 | 0 | 0 | 15 |
| sha224sum | fsha224sum |
SHA-224 checksums | :white_check_mark: | 10 | 0 | 0 | 10 |
| sha384sum | fsha384sum |
SHA-384 checksums | :white_check_mark: | 10 | 0 | 0 | 10 |
| sha512sum | fsha512sum |
SHA-512 checksums | :white_check_mark: | 10 | 0 | 0 | 10 |
| sum | fsum |
BSD/SysV checksums | :white_check_mark: | 23 | 0 | 0 | 23 |
| cksum | fcksum |
CRC-32 checksums | :white_check_mark: | 21 | 0 | 0 | 21 |
| ln | fln |
Create hard and symbolic links | :white_check_mark: | 16 | 0 | 0 | 16 |
| touch | ftouch |
Change file timestamps | :white_check_mark: | 21 | 0 | 0 | 21 |
| truncate | ftruncate |
Shrink or extend file sizes | :white_check_mark: | 25 | 0 | 0 | 25 |
| mkdir | fmkdir |
Create directories (symbolic mode support) | :white_check_mark: | 17 | 0 | 0 | 17 |
| rmdir | frmdir |
Remove empty directories | :white_check_mark: | 12 | 0 | 0 | 12 |
| mkfifo | fmkfifo |
Create named pipes (FIFOs) | :white_check_mark: | 11 | 0 | 0 | 11 |
| mknod | fmknod |
Create special files | :white_check_mark: | 10 | 0 | 0 | 10 |
| mktemp | fmktemp |
Create temporary files/directories | :white_check_mark: | 15 | 0 | 0 | 15 |
| link | flink |
Create hard link (low-level) | :white_check_mark: | 8 | 0 | 0 | 8 |
| unlink | funlink |
Remove file (low-level) | :white_check_mark: | 7 | 0 | 0 | 7 |
| basename | fbasename |
Strip directory and suffix from paths | :white_check_mark: | 26 | 0 | 0 | 26 |
| dirname | fdirname |
Strip last path component | :white_check_mark: | 23 | 0 | 0 | 23 |
| readlink | freadlink |
Print symlink targets | :white_check_mark: | 19 | 0 | 0 | 19 |
| realpath | frealpath |
Resolve absolute paths | :white_check_mark: | 24 | 0 | 0 | 24 |
| pathchk | fpathchk |
Validate path names | :white_check_mark: | 17 | 0 | 0 | 17 |
| seq | fseq |
Generate number sequences | :white_check_mark: | 53 | 0 | 0 | 53 |
| shuf | fshuf |
Random permutations of input | :warning: | 26 | 1 | 0 | 27 |
| tsort | ftsort |
Topological sorting | :white_check_mark: | 19 | 0 | 0 | 19 |
| tee | ftee |
Read stdin, write to stdout and files | :white_check_mark: | 15 | 0 | 0 | 15 |
| yes | fyes |
Output a string repeatedly | :white_check_mark: | 5 | 0 | 0 | 5 |
| id | fid |
Print user and group IDs | :white_check_mark: | 16 | 0 | 0 | 16 |
| groups | fgroups |
Print group memberships | :white_check_mark: | 4 | 0 | 0 | 4 |
| whoami | fwhoami |
Print effective user name | :white_check_mark: | 4 | 0 | 0 | 4 |
| logname | flogname |
Print login name | :white_check_mark: | 3 | 0 | 0 | 3 |
| uname | funame |
Print system information | :white_check_mark: | 14 | 0 | 0 | 14 |
| uptime | fuptime |
System uptime and load averages | :white_check_mark: | 5 | 0 | 0 | 5 |
| arch | farch |
Print machine architecture | :white_check_mark: | 5 | 0 | 0 | 5 |
| hostid | fhostid |
Print host identifier | :white_check_mark: | 6 | 0 | 0 | 6 |
| tty | ftty |
Print terminal name | :white_check_mark: | 6 | 0 | 0 | 6 |
| nproc | fnproc |
Print number of processors | :white_check_mark: | 8 | 0 | 0 | 8 |
| pwd | fpwd |
Print working directory | :white_check_mark: | 8 | 0 | 0 | 8 |
| printenv | fprintenv |
Print environment variables | :white_check_mark: | 5 | 0 | 0 | 5 |
| env | fenv |
Run program with modified environment | :white_check_mark: | 17 | 0 | 0 | 17 |
| timeout | ftimeout |
Run command with time limit | :warning: | 19 | 2 | 0 | 21 |
| nice | fnice |
Run with modified scheduling priority | :white_check_mark: | 12 | 0 | 0 | 12 |
| nohup | fnohup |
Run immune to hangups | :white_check_mark: | 6 | 0 | 0 | 6 |
| sleep | fsleep |
Delay for specified time | :white_check_mark: | 10 | 0 | 0 | 10 |
| sync | fsync |
Flush filesystem caches | :white_check_mark: | 5 | 0 | 1 | 6 |
| chroot | fchroot |
Change root directory (requires root) | :white_check_mark: | 11 | 0 | 0 | 11 |
| true | ftrue |
Exit with status 0 | :white_check_mark: | 8 | 0 | 0 | 8 |
| false | ffalse |
Exit with status 1 | :white_check_mark: | 7 | 0 | 0 | 7 |
| dircolors | fdircolors |
Setup LS_COLORS environment variable | :warning: | 12 | 2 | 0 | 14 |
| cp | fcp |
Copy files and directories | :white_check_mark: | 18 | 0 | 0 | 18 |
| rm | frm |
Remove files or directories | :white_check_mark: | 12 | 0 | 0 | 12 |
| chmod | fchmod |
Change file mode/permission bits | :white_check_mark: | 33 | 0 | 0 | 33 |
| chown | fchown |
Change file owner and group | :white_check_mark: | 11 | 0 | 0 | 11 |
| chgrp | fchgrp |
Change group ownership of files | :white_check_mark: | 11 | 0 | 0 | 11 |
| dd | fdd |
Convert and copy files with block-level operations | :white_check_mark: | 17 | 0 | 0 | 17 |
| split | fsplit |
Split files into pieces | :white_check_mark: | 20 | 0 | 0 | 20 |
| shred | fshred |
Overwrite files to hide contents | :white_check_mark: | 10 | 0 | 0 | 10 |
| install | finstall |
Copy files and set attributes | :white_check_mark: | 11 | 0 | 0 | 11 |
| echo | fecho |
Display a line of text | :white_check_mark: | 38 | 0 | 0 | 38 |
| expr | fexpr |
Evaluate expressions | :white_check_mark: | 43 | 0 | 0 | 43 |
| factor | ffactor |
Print prime factors of numbers | :white_check_mark: | 26 | 0 | 0 | 26 |
| test | ftest |
Check file types and compare values | :white_check_mark: | 51 | 0 | 0 | 51 |
| users | fusers |
Print logged-in user names | :white_check_mark: | 8 | 0 | 0 | 8 |
| stdbuf | fstdbuf |
Run command with modified I/O stream buffering | :white_check_mark: | 6 | 0 | 0 | 6 |
| stty | fstty |
Change and print terminal line settings | :white_check_mark: | 4 | 0 | 3 | 7 |
| ls | fls |
List directory contents | :warning: | 27 | 12 | 0 | 39 |
| stat | fstat |
Display file or filesystem status | :warning: | 17 | 6 | 0 | 23 |
| date | fdate |
Display or set the system date and time | :warning: | 16 | 6 | 0 | 22 |
| who | fwho |
Show who is logged on | :warning: | 3 | 6 | 0 | 9 |
| pinky | fpinky |
Lightweight finger information | :warning: | 2 | 7 | 0 | 9 |
| df | fdf |
Report filesystem disk space usage | :warning: | 2 | 15 | 0 | 17 |
| du | fdu |
Estimate file space usage | :warning: | 9 | 6 | 0 | 15 |
| od | fod |
Octal dump of file contents | :warning: | 1 | 34 | 0 | 35 |
| pr | fpr |
Paginate or columnate files for printing | :warning: | 4 | 15 | 0 | 19 |
| printf | fprintf |
Format and print data | :warning: | 48 | 5 | 0 | 53 |
| numfmt | fnumfmt |
Convert numbers to/from human-readable format | :warning: | 26 | 1 | 0 | 27 |
| fmt | ffmt |
Simple text formatter (reflow paragraphs) | :warning: | 17 | 1 | 0 | 18 |
| ptx | fptx |
Produce permuted index of file contents | :warning: | 2 | 8 | 0 | 10 |
| mv | fmv |
Move or rename files and directories | :construction: | - | - | - | - |
| dir | fdir |
List directory contents (like ls) | :construction: | - | - | - | - |
| vdir | fvdir |
List directory contents verbosely (like ls -l) | :construction: | - | - | - | - |
| csplit | fcsplit |
Split files based on context/patterns | :construction: | - | - | - | - |
| runcon | fruncon |
Run command with specified SELinux security context | :construction: | - | - | - | - |
| chcon | fchcon |
Change SELinux security context of files | :construction: | - | - | - | - |
Roadmap
We are actively working toward 100% compatibility with GNU coreutils — byte-identical output, same exit codes, and matching error messages for all 96+ tools. Once we achieve full compatibility, we will focus on performance optimization targeting 10-30x speedup over GNU coreutils across all tools.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project follows the Contributor Covenant Code of Conduct.
Architecture
See ARCHITECTURE.md for design decisions and PROGRESS.md for development status.
Security
To report a vulnerability, please see our Security Policy.
License
MIT