funny directory?

Kurt Granroth plug-discuss at granroth.org
Thu Sep 7 10:50:39 MST 2006


Try doing a listing with expansion rather than typing it yourself.  Something 
like:

root at ldesk:~# ls -ld /etc/dh<TAB><TAB>

Do that until it completes the full directory name.

On Thursday 07 September 2006 10:11, Dazed_75 wrote:
> root at ldesk:~# ls -al /etc/dh*
> total 40
> drwxr-xr-x   4 root root 4096 2006-09-06 09:00 .
> drwxr-xr-x 115 root root 8192 2006-09-07 08:40 ..
> -rw-r--r--   1 root root 1554 2006-09-06 09:00 dhclient.conf
> -rw-r--r--   1 root root 1566 2005-09-14 17:41 dhclient.conf~
> drwxr-xr-x   2 root root 4096 2006-07-13 15:03 dhclient-enter-hooks.d
> drwxr-xr-x   2 root root 4096 2006-06-07 21:33 dhclient-exit-hooks.d
> -rwxr-xr-x   1 root root 8322 2006-05-05 08:02 dhclient-script
> root at ldesk:~# ls -ald /etc/dh*
> drwxr-xr-x 4 root root 4096 2006-09-06 09:00 /etc/dhcp3
> root at ldesk:~# ls -ald /etc/dhclient-enter-hooks.d
> ls: /etc/dhclient-enter-hooks.d: No such file or directory
> root at ldesk:~# ls -al /etc/dhclient-enter-hooks.d
> ls: /etc/dhclient-enter-hooks.d: No such file or directory
> root at ldesk:~# ls -alF /etc/dhclient-enter-hooks.d
> ls: /etc/dhclient-enter-hooks.d: No such file or directory
> root at ldesk:~# ls -alF /etc/dh*
> total 40
> drwxr-xr-x   4 root root 4096 2006-09-06 09:00 ./
> drwxr-xr-x 115 root root 8192 2006-09-07 08:40 ../
> -rw-r--r--   1 root root 1554 2006-09-06 09:00 dhclient.conf
> -rw-r--r--   1 root root 1566 2005-09-14 17:41 dhclient.conf~
> drwxr-xr-x   2 root root 4096 2006-07-13 15:03 dhclient-enter-hooks.d/
> drwxr-xr-x   2 root root 4096 2006-06-07 21:33 dhclient-exit-hooks.d/
> -rwxr-xr-x   1 root root 8322 2006-05-05 08:02 dhclient-script*
> root at ldesk:~#
>
> oh, and
>
> root at ldesk:~# ls --version
> ls (GNU coreutils) 5.93
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software.  You may redistribute copies of it under the terms
> of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Richard Stallman and David MacKenzie.
>
> root at ldesk:~#
>
> On 9/7/06, Jeremy C. Reed <reed at reedmedia.net> wrote:
> > > > root at ldesk:/etc# ls -lF dh*
> > > > total 28
> > > > -rw-r--r-- 1 root root 1554 2006-09-06 09:00 dhclient.conf
> > > > -rw-r--r-- 1 root root 1566 2005-09-14 17:41 dhclient.conf~
> > > > drwxr-xr-x 2 root root 4096 2006-07-13 15:03 dhclient-enter-hooks.d/
> > > > drwxr-xr-x 2 root root 4096 2006-06-07 21:33 dhclient-exit-hooks.d/
> > > > -rwxr-xr-x 1 root root 8322 2006-05-05 08:02 dhclient-script*
> > > > root at ldesk:/etc# cd dhclient-enter-hooks.d/
> > > > -su: cd: dhclient-enter-hooks.d/: No such file or directory
> > > > root at ldesk:/etc# ls -al dhclient-enter-hooks.d
> > > > ls: dhclient-enter-hooks.d: No such file or directory
> > > > root at ldesk:/etc#
> >
> > I wonder if this is caused by your version of "ls". (Maybe it is really
> > in a subdirectory? Normally the directory names are displayed also in
> > that case, so this is just a guess.)
> >
> > What happens when you add "-d" switch to your "ls" command?
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change  you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
|||


More information about the PLUG-discuss mailing list