713 B
713 B
title |
---|
Bash rm |
Bash command: rm
Usage
Delete a File
rm <file name or file path>
Delete a Directory
rm -R <folder name or folder path>
There are few commonly used arguments:
-r
, means to recursively delete all the folders inside a directory.-f
, means to forcefully delete anything folder or file.-i
, will ask before deleting the file.-v
, will explain what was deleted.
Warning
This command is capable of deleting many files at once with ease. This can be beneficial, but also dangerous. Use at your own risk.