SSH Reference Manual
List files on remote system (detailed output): 
sftp> ls -l 
drwxr-xr-x 0 513 100 1200 Feb 11 15:10 . 
drwxr-xr-x 0 0 0 608 Dec 31 12:04 .. 
drwxr-xr-x 0 513 100 80 Feb 27 2004 public_html 
drwxr-x--- 0 513 100 48 Feb 27 2004 pubs 
drwxr-xr-x 0 513 100 48 Feb 9 20:45 put 
-rw-r--r-- 0 513 100 1011018 Feb 9 20:40 putfiles 
sftp> 
Change to directory "put", list the files there (note that the directory is empty): 
sftp> cd put 
sftp> ls -l 
drwxr-xr-x 0 513 100 72 Feb 14 07:31 . 
drwxr-xr-x 0 513 100 1200 Feb 11 15:10 .. 
sftp>  
Show local working directory: 
sftp> lpwd 
Local working directory: /home/tb 
sftp> 
Verify the remote working directory: 
sftp> pwd 
Remote working directory: /home/burgt/put 
sftp> 
Transfer local file "a10000" to remote system:  
sftp> put a10000 
Uploading a10000 to /home/burgt/put/a10000 
a10000   
100% 9900 0.0KB/s 00:00 
sftp> 
List files on remote system (note the new file a10000): 
sftp> ls -l 
drwxr-xr-x 0 513 100 72 Feb 14 07:31 . 
drwxr-xr-x 0 513 100 1200 Feb 11 15:10 .. 
-rw-r--r-- 0 513 100  9900 Feb 14 07:31 a10000 
sftp>  
Leave the SFTP client: 
sftp> bye 
/home/tb: 
Transfer Progress Meter 
SFTP/SFTPOSS client displays a progress indicator during file transfers if enabled. The progress meter can be enabled 
via command "progress on" and disabled via command "progress off". Entering the command progress without option 
will switch between the states "progress enabled" and "progress disabled". 
If progress is disabled, the only line displayed for a download is "Fetching <remote-file> to <local-file>" and for an 
upload the line "Uploading <local-file> to <remote-file>" is shown. 
In addition to option values on and off there is a third option "min" supported, which reduces the progress output to the 
last line: "<count> bytes transferred in <time> seconds (<rate>MB/s)". 
Command "progress ?" will display the current setting (on, off, or min). 
232 • SSH and SFTP Client Reference  HP NonStop SSH Reference Manual 










