Deleting a file in Linux
A file can be deleted in Linux using rm command.
By default rm command will not delete directories. Directories can be deleted by specifying -r (recursive) option.
If a file is write protected, then rm command will prompt a user before deleting such file.
This prompt can be suppressed by specifying -f option. -f stands for force.
Comments
Post a Comment