03-03 rm command

01

man rm
                

The rm command will remove just a file

02

You can remove 1 file

rm file1.txt
                

or multiple files

rm file2.txt file3.txt
                

03

-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
                

04

-rf

The -rf options stand for recursive and force, which will delete a directory

mkdir Test
                
rm Test
                
rm -rf Test