How To Delete Files with Special Characters

(Doc ID 1017669.1)

Last updated on OCTOBER 14, 2016

Applies to:

Solaris SPARC Operating System - Version 8.0 and later
All Platforms

Goal

The following document assumes a PATH variable that contains /usr/sbin and /usr/bin.
For commands or files that normally exist outside of these common directories, full paths are specified.
Several occasions exist where a mangled filename prevent them from being deleted by the usual standard rm syntax.

The solution contains some examples of how to deal with the problem.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms