View Full Version : FTP 'ls' one screen at a time? Or how to?
rainbow
02-22-2002, 07:49 PM
In Ftp, when you change to a big directory and use ls, the resulting long list of file names goes off the screen. How do you make it pause at a screenful, the way you can at the bash command interpreter shell? "ls | more" doesn't work. What does?
Thanks for any help on this. Rainbow ((;)
Most ftp programs allow you to do it this way:
ftp> ls . |more
(the first argument of ls is the remote directory, which happens to be the current directory . and the second is the file that should receive the directory information, which happens to be a pipe to the command more) Note that there is no space between the pipe character (|) and the command name (more), but if you need spaces you can use quotes ("") or escaped spaces (\ ).
Hope this helps...
alex
rainbow
02-23-2002, 05:39 PM
Thanks Alex, I gave it a try. It's working!!!
Rainbow ((;)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.