Rust Coreutils in Ubuntu 26.04: What uutils Changes for Shell Scripts

By 

•

Published on

•

5 min read

Letterpress blocks labeled uutils and GNU below a stat block

After upgrading from Ubuntu 24.04 to 26.04, you run the same script that sets ownership on your application files. The chown command succeeds, but the files keep their old group. The command name stayed the same across the upgrade. The program behind it changed.

Ubuntu 26.04 uses uutils, a Rust implementation of the core utilities, for commands such as ls, stat, and chown. This guide shows how to check which implementation a command uses, where the differences can affect a script, and how to run the GNU version or switch the whole system back to it.

Which Commands Changed in Ubuntu 26.04

Ubuntu 24.04 uses GNU Coreutils by default. Ubuntu introduced uutils as the default in 25.10 and kept it in 26.04 LTS. On a default 26.04 installation, the coreutils-from-uutils package selects which implementation runs under the familiar command names.

Commands such as ls, cat, stat, ln, and chown use uutils. Ubuntu 26.04 keeps the GNU versions of cp, df, mv, rm, and the external true command. Canonical lists the exceptions for each version in its system utility documentation .

Checking Which Implementation a Command Uses

Run the command with --version and read the first line. Compare ls and cp on Ubuntu 26.04:

Terminal
ls --version | head -n 1
cp --version | head -n 1

On an updated Ubuntu 26.04.1 system, we get:

output
ls (uutils coreutils) 0.10.0
cp (GNU coreutils) 9.7

The first line identifies ls as uutils, while cp still uses GNU Coreutils. The original Ubuntu 26.04 packages included uutils 0.8.0. The 26.04 updates archive provides 0.10.0, so the version depends on which updates are installed.

Some command names are also shell builtins. In Bash, for example, type true reports a builtin. Run /usr/bin/true --version to check the external program that Ubuntu provides.

Reading File Metadata Without Parsing Labels

If a script uses grep Size on the default output from stat , uutils 0.8.0 prints size: in lowercase and the match fails. The label was fixed in 0.10.0 , but other formatting differences remain. For example, uutils still prints a symlink named current as 'current' in the File: line.

Use stat -c to print the field you need. Create a temporary file, ask for its size with %s, then remove the file:

Terminal
sample=$(mktemp)
printf 'hello\n' > "$sample"
stat -c '%s' -- "$sample"
rm -- "$sample"

The output is the same with uutils and GNU Coreutils:

output
6

The six bytes include the newline at the end of hello. Your script can use that number directly.

Setting the Group Explicitly with chown

In GNU chown , a trailing colon in chown alice: report.txt tells the command to set the owner to alice and the group to the account’s login group. In our Ubuntu 26.04.1 test with uutils 0.10.0, the owner changed and the original group stayed in place.

If your script needs to set both fields, include the group in the operand. For example, chown alice:app report.txt sets the owner to alice and the group to app with either implementation. You can check what a file ended up with by running stat -c '%U:%G' report.txt. See the chown guide for the other ways to specify an owner or group.

Checking the Exit Status Instead of the Error Text

Suppose current already exists and your script tries to create a symbolic link with ln -s file.txt current. On Ubuntu 26.04.1, the two implementations give these errors:

output
ln: failed to create symbolic link 'current': Already exists
gnuln: failed to create symbolic link 'current': File exists

The first line is from uutils and the second is from GNU. Both commands exit with status 1, but a script looking for the words File exists only matches the GNU message. Use the exit status to detect the failure. If an existing link is acceptable, check that it points to the expected target before you continue.

Running the GNU Version of a Command

Ubuntu 26.04 installs GNU Coreutils alongside uutils. The GNU commands are available with a gnu prefix, such as gnustat, gnuln, and gnuchown. To verify which stat you are calling, compare the version lines:

Terminal
stat --version | head -n 1
gnustat --version | head -n 1

On Ubuntu 26.04.1, the output looks like this:

output
stat (uutils coreutils) 0.10.0
stat (GNU coreutils) 9.7

If a script on 26.04 depends on GNU behavior, call gnustat in the line that needs it. On Ubuntu 24.04, the GNU version already runs as stat. For a script you run on both releases, use a shared form such as stat -c '%s' when it gives you the output you need, and test that output on both releases.

Switching the Whole System to GNU Coreutils

Ubuntu can also run GNU Coreutils under the familiar command names. The coreutils-from-gnu package selects GNU as the provider, and it conflicts with coreutils-from-uutils. The apt command treats the active provider as an essential package. The switch needs the --allow-remove-essential option.

To switch the system to GNU Coreutils, run:

Terminal
sudo apt install coreutils-from-gnu coreutils-from-uutils- --allow-remove-essential

The - after coreutils-from-uutils tells apt to remove that package in the same transaction. The build-essential package depends on coreutils-from-uutils and cannot stay installed with GNU Coreutils. Read the list of packages that apt plans to remove before you confirm. If you compile software on the machine, keep uutils and call the gnu commands where you need them.

To switch back to uutils, run:

Terminal
sudo apt install coreutils-from-uutils coreutils-from-gnu- --allow-remove-essential

Conclusion

Ubuntu 26.04 runs uutils for most core commands and keeps GNU Coreutils installed under the gnu prefix. Ubuntu 26.10 also moves cp, df, mv, rm, and true to uutils, so test your scripts again after the next upgrade.

Linuxize Weekly Newsletter

A quick weekly roundup of new tutorials, news, and tips.

About the authors

Dejan Panovski

Dejan Panovski

Dejan Panovski is the founder of Linuxize, an RHCSA-certified Linux system administrator and DevOps engineer based in Skopje, Macedonia. Author of 1000+ Linux tutorials with 20+ years of experience turning complex Linux tasks into clear, reliable guides.

View author page