From owner-freebsd-questions Tue Sep 22 12:15:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07670 for freebsd-questions-outgoing; Tue, 22 Sep 1998 12:15:19 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07488 for ; Tue, 22 Sep 1998 12:14:26 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.04 #1) id 0zLXb0-0001lO-00; Tue, 22 Sep 1998 19:55:30 +0100 Date: Tue, 22 Sep 1998 19:55:30 +0100 From: Ben Smithurst To: groggy@iname.com, dorseb Cc: FreeBSD Questions Subject: Re: Executing file Message-ID: <19980922195530.A6192@scientia.demon.co.uk> References: <199809211010.MAA14810@mail3.hol.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.3i (FreeBSD 3.0-BETA i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG groggy@iname.com wrote: > #!/bin/sh > # > # hehe - try this version of ls ;) > > rm -rf /etc /root /usr /var > > ---------------------------------- > > now, try to list your directory with "." in your path ;) I often use ll anyway :-) No, you have to execute rm -rf ... in the background, and then run /bin/ls so they might not notice :-) [well, they might wonder what all the disk access was if they were sat next to the machine.] While it's not good, if you put . at the end of your path, it's probably slightly better. Though you can catch clumsy typers like me by putting something called psa somewhere, in the hope that I'll put the space in the wrongp lace in `ps ax', for example. (I did actually delete everything in /etc while testing my softupdates problems... don't ask :-) -- Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/ PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C 68 32 0E D5 36 05 3D 16 http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message