Command is - rm filename.extensionname
rm file1.txt
rm does not remove directory but you can remove list of files in a directory by this command
rm -r directoryname. (-r recursive method)
rm -r Music. This command will remove all the files in the directory Music.
You cannot remove files with rm if you do not have write permission on the files.
No comments:
Post a Comment