From owner-freebsd-questions@FreeBSD.ORG Mon Jun 23 12:20:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A8A237B405 for ; Mon, 23 Jun 2003 12:20:40 -0700 (PDT) Received: from axel.truedestiny.net (b87189.upc-b.chello.nl [212.83.87.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CFBC43FB1 for ; Mon, 23 Jun 2003 12:20:38 -0700 (PDT) (envelope-from ascheepers@vianetworks.nl) Received: from apollo (apollo.thuis [192.168.0.10]) by dionysus.thuis (Postfix) with SMTP id 49DE91C8E3; Sun, 22 Jun 2003 20:15:55 +0200 (CEST) Message-ID: <026701c338ea$c6caad60$0a00a8c0@apollo> From: "Axel Scheepers" To: "Peter Leftwich" , "Joshua Oreman" References: <013a01c33674$8430c200$0eddfea9@perimeter.co.za><20030621154950.GA39220@webserver.get-linux.org> <20030622134833.V67487@rocket.alienwebshop.com> Date: Sun, 22 Jun 2003 20:19:10 +0200 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 cc: FreeBSD LIST Subject: Re: Mount My Creation [ls -c, -t -u etc] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 19:20:40 -0000 ----- Original Message ----- [snip] > On Sat, 21 Jun 2003, Joshua Oreman wrote: > What "ls" command can I do IN THE CURRENT WORKING DIRECTORY to just see the > "myfiles/" listing? That is, if I type "ls -alF myfiles" (or myfiles/), > why does the output delve *into* this directory and list its contents? > > The only work around is "ls -alF | grep myfiles" it seems! > no, it isn't, try the -d switch: dionysus: {1022} mkdir testdir dionysus: {1023} touch testdir/file1 dionysus: {1024} touch testdir/file2 dionysus: {1025} touch testdir/file3 dionysus: {1026} ls -laFd testdir drwxr-xr-x 2 root users 512 Jun 22 20:14 testdir/ dionysus: {1027} ls -laF testdir total 4 drwxr-xr-x 2 root users 512 Jun 22 20:14 ./ drwxr-xr-x 3 root users 512 Jun 22 20:14 ../ -rw-r--r-- 1 root users 0 Jun 22 20:14 file1 -rw-r--r-- 1 root users 0 Jun 22 20:14 file2 -rw-r--r-- 1 root users 0 Jun 22 20:14 file3 dionysus: {1028} Gr, Axel Scheepers