Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2003 20:19:10 +0200
From:      "Axel Scheepers" <ascheepers@vianetworks.nl>
To:        "Peter Leftwich" <Hostmaster@Video2Video.Com>, "Joshua Oreman" <oremanj@www.get-linux.org>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: Mount My Creation [ls -c, -t -u etc]
Message-ID:  <026701c338ea$c6caad60$0a00a8c0@apollo>
References:  <013a01c33674$8430c200$0eddfea9@perimeter.co.za><20030621154950.GA39220@webserver.get-linux.org> <20030622134833.V67487@rocket.alienwebshop.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?026701c338ea$c6caad60$0a00a8c0>