rm
commandman rm
The rm
command will remove just a file
You can remove 1 file
rm file1.txt
or multiple files
rm file2.txt file3.txt
-i
The -i
I flag stands for interactive
mode, and will ask you if you really want to delete the file
touch file1.txt
rm -i file1.txt
-rf
The -rf
options stand for recursive
and force
, which will delete a directory
mkdir Test
rm Test
rm -rf Test