how to delete files on linux code example
Example 1: delete file linux terminal
rm filename
# or add -rf if you don't want to see confirm
Example 2: how to remove file from directory in linux
rm /home/harry/ascii.txt
Example 3: how to delete files in linux
rm <file> .. rm -r <file> .. r stands for recursive
Example 4: removing a file in linux
#use the command rm <file or foldername>
#for example removing a file called book
rm book