How do I remove a regular file and a file with a space from the command line?

Updated -

The rm command is used to remove files or to be more technical, unlink a file. The rm command is provided by the coreutils RPM. See the remove man page, man rm, for usage, additional options, and command details.

In order to remove a file, you can use the ls command to list the contents of the directory you are currently i...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content