From owner-freebsd-questions Sun Jun 16 22:22:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by hub.freebsd.org (Postfix) with SMTP id 013A337B428 for ; Sun, 16 Jun 2002 22:22:24 -0700 (PDT) Received: (qmail 20453 invoked from network); 17 Jun 2002 05:20:56 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 17 Jun 2002 05:20:56 -0000 Received: (from roman@localhost) by freepuppy.bellavista.cz (8.11.6/8.11.6) id g5H5PAr21520; Mon, 17 Jun 2002 07:25:10 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Mon, 17 Jun 2002 07:25:10 +0200 From: Roman Neuhauser To: Peter Leftwich Cc: FreeBSD Questions LIST Subject: Re: ls, du, df, and fstab Message-ID: <20020617052509.GW64435@freepuppy.bellavista.cz> Mail-Followup-To: Peter Leftwich , FreeBSD Questions LIST References: <20020616213840.M423-100000@66-75-1-142.san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020616213840.M423-100000@66-75-1-142.san.rr.com> User-Agent: Mutt/1.3.99i 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 > Date: Sun, 16 Jun 2002 21:43:32 -0700 (PDT) > From: Peter Leftwich > To: FreeBSD Questions LIST > Subject: ls, du, df, and fstab > > 1. Does the Unix and/or FreeBSD community have any plans to add more flags > to the "ls" command? I would like to see flags to sort output more easily > based on creation date (ctime), modification date (mtime) and, most > importantly, by filesize. Someone pointed out that `du -ak | sort -rn | > more` does the same thing but some easy-to-remember ls flags would be cool! the BSD ls(1) is quite conservative, but you can install the GNU ls(1). It's In The Ports(tm). > 2. Can someone assemble a command line so that du only lists the files and > directories -IN- the current directory? I tried `du -ak -d 0 | more` but > the dash d depth thing doesn't seem to work right... du -sk * > 3. Why does the df command not include a listing for the "swap" that my > /etc/fstab appoints? no idea > 4. Finally, (are you still with me), is there a way I can include mounts > for both my CDRW and DVD drives in my /etc/fstab even if I boot up with OR > without a disc in either drive? do you mean the "noauto" option? /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/fd0c /floppy ufs rw,noauto 0 0 -- FreeBSD 4.5-STABLE 7:18AM up 13 days, 21:07, 8 users, load averages: 0.04, 0.02, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message