From owner-freebsd-questions Thu Dec 6 9:37: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id 3FF4E37B405 for ; Thu, 6 Dec 2001 09:36:58 -0800 (PST) Received: from contactdish (contactdish.atkielski.com [10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fB6Haux10424 for ; Thu, 6 Dec 2001 18:36:56 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <001601c17e7c$9a391040$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "FreeBSD Questions" Subject: Re: Modifying only certain bits with chmod Date: Thu, 6 Dec 2001 18:36:56 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Roman writes: > I'm not that old, have been using FreeBSD for a couple of months > only, and yet I terribly miss an option that would make ls(1) > display perms in octal. Done. Shall I send you the modified source? I added a -p option (one of the few letters available!) which prints the file modes in octal instead of as the usual -rw-r--r-- strings if you also specify the long format for output (-l). I've not exhaustively tested it but it seems to work okay (it's a simple change). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message