From owner-freebsd-questions@FreeBSD.ORG Wed Apr 11 16:27:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40B3F16A400 for ; Wed, 11 Apr 2007 16:27:09 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id D475513C4CC for ; Wed, 11 Apr 2007 16:27:08 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so149699ugh for ; Wed, 11 Apr 2007 09:27:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=TQF1vrxm0pxOu8WD3fYZOD2iO1ZoltiAw7Ktic+xKJ60kl+8GRuYDll2Kp/3gw/YKt6iOTFmmePv5zrH/XN5wrBhMSyrGiVnxvwj0ijqrVf7dXTPFcyUB9rfW/uHz1bq8QDI36mVcC3jR/RxXt2NK+QJWmFlWU6U//8Abhx4Yew= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=U5hTrrtNAheris3m9Klrpsj5bfqe3+FRzi6U/JqiZyqD4GfeOUUcQzpIuB0Hmjo9TgXShoBLNbJJSWb/OlmMiFnALln/qBce2gWYO8XKO6OqrNAZxYCDgbuq5ELZvZ48K8Sek9lW09eM5WVcuAGz8jXUoTnuduAwTKuJeYnoueI= Received: by 10.82.175.2 with SMTP id x2mr1077528bue.1176307108514; Wed, 11 Apr 2007 08:58:28 -0700 (PDT) Received: from ?192.168.123.111? ( [84.2.98.83]) by mx.google.com with ESMTP id e8sm594257muf.2007.04.11.08.58.26; Wed, 11 Apr 2007 08:58:26 -0700 (PDT) Message-ID: <461D0614.2060709@gmail.com> Date: Wed, 11 Apr 2007 18:00:20 +0200 From: deeptech71@gmail.com User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: rm --clear-directory /home/me/another_dir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 16:27:09 -0000 Is there a way to clear a directory with such a command (keeping the owner and permissions of the folder)? Yes there are the obvious ones: cd /home/me/another_dir && rm * rm /home/me/another_dir/* // if cant traverse here But something that doesn't rely on the shell.