Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Remove multiple files with one command: find

Up
vote
Down

This quickie tutorial shows you how to find and delete files across any directory tree in Linux. Note that this syntax works in most any other Unix-like OS as well.
It's fairly simple to delete core files from your filesystem from[NA2] the command line. Using find[LI3], you can delete every core dump file on a given[NA4] GNU/Linux system by logging on as the superuser root and running the following command:

find / -name core -exec rm -f {} ;

Let's break that command down shall we?
 read more | mail this link | score:9355 | -Ray, February 4, 2003 (Updated: October 24, 2004)
More Sysadmin articles...

admin headlines

Install Nginx, PHP 5.3, PHP-FPM on Ubuntu 10.04

Build a standalone file ferver with Nexenta 3.0

Virt-install and Virt-manager at Xen 4.0 Dom0 on Ubuntu 9.10

inotify: Monitor Linux file systems

Linux Security Introduction

Buck-security: Ubuntu Security scanner

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search


T-shirt gallery:  I Love Cats T-shirts
 

Articles are owned by their authors.   © 2000-2010 Ray Yeargin