To remove (or delete) a file in Linux from the command line, use either the rm (remove) or unlink command.
rm command is used to remove files or directories as shown below.
rm directory command
rmdir command for delete/remove empty directories as follows.
rm command is used to remove files or directories as shown below.
$ rm file1
$ rm -rf my-files
rm directory command
rmdir command for delete/remove empty directories as follows.
$ rmdir /backup/all
No comments:
Post a Comment