Can't remove files from a directory that was partially used by a jail

Arthur Chance freebsd at
Sat Apr 11 16:45:57 UTC 2020

On 10/04/2020 21:22, Michael Sierchio wrote:
> ls -Rlo
> recursive listing showing flags
> or, just apply the hammer,
> chflags -R 0 <dir>

Or the no-brainer hammer

rm -rf ${DIR2RM} || chflags -R 0 ${DIR2RM} && rm -rf ${DIR2RM}

If that doesn't work you've probably got a read-only file system.

Violets are red
And roses are blue
When metamaterials
Alter their hue.

More information about the freebsd-questions mailing list