Top "Rm" questions

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

How to remove files and directories quickly via terminal (bash shell)

From terminal window: When I use the rm command it can only remove files. When I use the rmdir command …

file terminal directory rm rmdir
How to delete multiple files at once in Bash on Linux?

I have this list of files on a Linux server: abc.log.2012-03-14 abc.log.2012-03-27 abc.log.2012…

linux bash rm
Remove all files except some from a directory

When using sudo rm -r, how can I delete all files, with the exception of the following: textfile.txt backup.…

bash rm
How to recover the deleted files using "rm -R" command in linux server?

I have unfortunately deleted some important files and folders using 'rm -R ' command in Linux server. Is there any …

command undo rm
Linux delete file with size 0

How do I delete a certain file in linux if its size is 0. I want to execute this in an …

linux filesystems delete-file ls rm
How to prevent rm from reporting that a file was not found?

I am using rm within a BASH script to delete many files. Sometimes the files are not present, so it …

bash rm
How to remove folders with a certain name

In Linux, how do I remove folders with a certain name which are nested deep in a folder hierarchy? The …

linux unix rm
Can't remove a directory in Unix

I've got a seemingly un-deletable directory in Unix that contains some hidden files with names that start with .panfs. I'm …

linux unix directory rm
Remove only files in directory on linux NOT directories

What delete command can be run to remove only files in given directory NOT directories NOT sub-directories NOT files in …

linux rm
Command line: piping find results to rm

I'm trying to work out a command which deletes sql files older than 15 days. The find part is working but …

unix command-line find rm