Remove a File

$ cat apple.txt
worm seed
$ rm apple.txt
$ cat apple.txt
cat: apple.txt: No such file or directory

Removing all files in a directory and the directory itself

Use with caution!
$ rm -fr /bin/laden

Note: the above example assumes you have permissions to remove the directory.

search Search · star Market
2023-06-01 · John December · Terms ©