O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing files

To remove a file, the rm command can be used. The rm command removes the file that is passed along as a parameter. By default, rm will refuse to remove a directory; it only operates on files.

The two options that are very often passed to rm are -r and -f. First, a word of caution on the -f option, which stands for force; while the rm command should be used with extreme care, the -f option requires even more thought and attention. The -f option forces the removal of anything rm can delete, regardless of any permission.

The -r option also needs to be used with care, as it stands for recursively delete. Ironically, the -r option takes a directory as a parameter, so it can recursively delete every file and directory under the passed location. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required