How to delete files and folders in Linux/Unix
Basically in linux rm command is using for delete files and directory
To remove a file named file.txt, use the following command.
Remove multiple files file.txt,file2.txt,file3.txt use the following command.
rm file.txt file2.txt file3.txt
Linux offer the following commands to delete/remove files/folders:
Remove files that pop up “remove regular file”.If you need to remove the var directory with files that need file permissions to delete.Use the code below
rm -r --interactive=never /var/
rm -rf /var/