Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2005 13:13:57 -0400
From:      Mike Hernandez <sequethin@gmail.com>
To:        questions@freebsd.org
Subject:   Re: long ftp dir listings
Message-ID:  <3060c23905092910131ad91b25@mail.gmail.com>
In-Reply-To: <3.0.5.32.20050929092731.013ef6b0@gv.net>
References:  <3.0.5.32.20050929092731.013ef6b0@gv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/29/05, David <freebsd-questions@gv.net> wrote:
> Dear list,
>
> I am often annoyed trying to get a long directory listing from my unix bo=
x
> while ftp'ing somewhere. <pause> is hardly useful, since the listing goes
> by to quickly. Occasionally, I have found a site that uses |more , but th=
is
> is unusual. I often resort to using ftp in Windows DOS mode so I can scro=
ll
> up a long listing. Any good methods would be appreciated.

I use zsh's built in ftp.  It's as simple as this (assuming zsh is installe=
d):

#[probably put this in .zshrc]
zmodload zsh/zftp
autoload -U zfinit
zfinit

zfopen ftp.whatever.foo
[user & pass when prompted]
zfcd pub/example/test/etc
zfls|less

The real beauty of it is that you can use all of zsh's expansions and
the ftp stuff sits in the background while you use your shell.  For
more info man zshzftpsys

Good luck :)

Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3060c23905092910131ad91b25>