Top "Rm" questions

rm is a basic UNIX command used to remove files, directories, and other items from the filesystem.

Delete a list of files with find and grep

I want to delete all files which have names containing a specific word, e.g. "car". So far, I came …

grep find pipe rm
Powershell Command: rm -rf

I did a bit of research and I'm still not sure exactly what it does. I know rm is remove …

powershell command cmd rm
Delete files with string found in file - linux cli

I am trying to delete erroneous emails based on finding the email address in the file via Linux CLI. I …

linux file find command-line-interface rm
git - how to remove empty folder and push that change?

How can I remove an empty folder locally and also have that happen for other collaborators that share the remote …

git directory rm rmdir
How to delete only directories and leave files untouched

I have hundreds of directories and files in one directory. What is the best way deleting only directories (no matter …

unix directory rm
Unable to remove files recursively from Git

I want to remove all files from Git at ~/bin/. I run git rm -r --cached ~/.vim/* # Thanks to Pate …

git rm
Linux why can't I pipe find result to rm?

sorry if this is a noobie question but I can't find a good answer. To find then remove something I …

linux bash find pipe rm
osx find exec rm find: exec: unknown primary or operator

I've got a bunch of files that end in "-e" that I want to remove. $ find . -name "*-e" exec rm {} \; …

bash unix find rm
Removing files with rm using find and xargs

When I do rm file.txt or rm *.txt I'm prompted for each file, since I didn't specify the -f …

linux xargs rm
How to enable confirmation alert when using 'rm' command to delete files / folders?

I have found that we cannot recover files/folders when deleted using rm command from here But, is it possible …

linux shell ubuntu command-line rm