Mount My Creation [ls -c, -t -u etc]

Axel Scheepers ascheepers at vianetworks.nl
Mon Jun 23 12:20:40 PDT 2003


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




More information about the freebsd-questions mailing list