Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2006 12:45:35 -0600
From:      Dan Nelson <>
Subject:   Re: Is there UNIX analog of ftp command pls?
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In the last episode (Dec 19), said:
> Is there UNIX analog of ftp command pls, i. e. ls | less ?

Yes, "ls | less" is the way to do it.  You can add a shell alias to
make it easier to type:

  alias pls="ls -l | less"

That's for bourne-style shells (sh,bash,zsh).  for csh, you would use

  alias pls "ls | less"

Another way to do it would be to write a script named pls and put it in
your path:

  #! /bin/sh
  ls "$@" | less

	Dan Nelson

Want to link to this message? Use this URL: <>