From owner-freebsd-questions@freebsd.org Sun Jul 1 19:13:33 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7B4BFD4A17 for ; Sun, 1 Jul 2018 19:13:33 +0000 (UTC) (envelope-from paul.schmehl@gmail.com) Received: from mail-ot0-x22f.google.com (mail-ot0-x22f.google.com [IPv6:2607:f8b0:4003:c0f::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FE1579F70 for ; Sun, 1 Jul 2018 19:13:33 +0000 (UTC) (envelope-from paul.schmehl@gmail.com) Received: by mail-ot0-x22f.google.com with SMTP id v8-v6so1061319oth.3 for ; Sun, 01 Jul 2018 12:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:reply-to:to:subject:message-id:mime-version :content-transfer-encoding:content-disposition; bh=Ydp2vbb32g/aYJagbn1B9BUr1riQpKFGqXqvEIVF05U=; b=fP2DKQeofxSljgEJmZkcxS63QpojsTq7PBM7kwSRX4ZNQsYT36rGyXUESj2OCKRbUZ Sz5RqAbnW4Fo/v22rHpMyKrq+iZC2i2Px3atFdWO3CNyHz85QWgu1Jus1xF6+EifM6bd O6LwvEOsoAyuza0Whi25NcwS6sRiHp/UPFg1oQ8HCwHNpSJNT7SfKiR3mLPPwd9YIdNZ RPByHnWBaROvF3ZZGihfeS+jzlcOSsxIS2Pj7BgurPNxT5DL1V2Xutuky0AX1fev/3r5 FZ7GVyalTy55qragJuSJhPzvcu4DVXEkwu7NwJnkjH5aiIzVo7RbVy1sMDuKgoHrR8LU QbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:reply-to:to:subject:message-id :mime-version:content-transfer-encoding:content-disposition; bh=Ydp2vbb32g/aYJagbn1B9BUr1riQpKFGqXqvEIVF05U=; b=bqvzuDvWy+EN5BMyDQwwue9J1VzbZf2ENLCOOTI2TtOcbIskoHrT9pryhDfAb7BinR htAQy2meAj2d9tORbxH7K9pyjfaTm9sENO6lbU6XdhHsG0zkhS8q2qEBYP5C7+kC9sQI kw4MRBg6YiJzysh4mbimtrXcPgNUBIE5baaUOCRqc3D0Heg6JRd8+8hupbI+KIPmX8m4 jW20Iz+ula1VqpwGJvRkdGLtxU0iYHmcNh+XUFNdHgIsir/+bxFTA6PpbtZwT/wYnArI d5qlgqNX6knh5L0oZnJ9aHFmOwOklv+e73WscZtMD10QnP7gnCsCM7tzO6YUEpUM1J2w EisQ== X-Gm-Message-State: APt69E2t48Kvm4DsBm2wChRMDi0Eg93jzg/y6h0n2snFSdrK/5yo/P2i kmbLBY2FDpAvdD4m84ZU7tsjdA== X-Google-Smtp-Source: AAOMgpdlegKP9KcAbMxuQCTZc6h0JsM3QD+MOyBwcf37tryHm75SfaoQByUB3D1wmTWtZ6aiYyEkMw== X-Received: by 2002:a9d:6a1:: with SMTP id 30-v6mr12562899otx.3.1530472412474; Sun, 01 Jul 2018 12:13:32 -0700 (PDT) Received: from [192.168.0.10] (cpe-70-121-63-82.tx.res.rr.com. [70.121.63.82]) by smtp.gmail.com with ESMTPSA id 185-v6sm4369574oid.22.2018.07.01.12.13.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 01 Jul 2018 12:13:31 -0700 (PDT) Date: Sun, 01 Jul 2018 14:13:30 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: FreeBSD Questions Subject: Problem deleting files Message-ID: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2018 19:13:34 -0000 I have a problem with a directory full of files that I can't seem to delete. rm * returns argument list too long. So does file * find . -type f -exec rm [] \; returns rm: []: No such file or directory over and over again. ls | wc -l shows there's files there. ls | wc -l 5023368 And ls -l actually lists the files: -rw------- 1 root wheel 134 Jun 7 2015 sess_19n679i71prvju8nuqsvd727o4 If I try to delete that specific filename, it seems to work. (Running rm twice returns no such file the second time.) Yet the file count remains the same. I also tried rm -fr | ls -l | awk '{print $9}', which returned a list of filenames but didn't delete any of them. Nothing I've tried to delete these files seems to work. What can I do to get rid of these files? Paul Schmehl Independent Researcher