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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.