Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
Introduction to Linux 407
B.5.6 The rm Command
The rm command will remove (delete) a file from the directory where it is cur-
rently located. The command has the following format:
rm [options] filename
This command will remove (delete) the specified file from the current directory.
The following example shows the use of the rm command.
rm rrsched.cpp
rm mydat/
*
.dat
The first line in the example deletes file rrsched.cpp from the current work-
ing directory. The second line removes all the files whose names end with .dat. The
most common options of the rm command are the following. Interactive option -i,
which prompts the user when a file will be removed. Recursive option -r, which will
remove the entire directories (all their files). Verbose -v, which displays ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783