Using the “ls <path>” Command
The OpenSSH SFTP client is
fully interoperable with NetStorage. The points that follow offer notes
about the directory listing command (
ls <path>) when
using OpenSSH versions 3.4p1 and earlier.
- Output is unsorted (version 3.5p1 introduced sorting).
..entries are always displayed (version 3.5p1 introduced the filtering of “hidden” dotfiles, as well as a new
-aoption that displays these entries).
- The command’s argument must be a directory (version 3.5p1 removed this restriction so the command can also be used on other object types such as files and symbolic links).
Example “ls” doesn't show dot files
By default, the
won't show hidden dotfiles.
sftp> ls -l movies -rw-rw-r-- 0 writingteam storage 41392 Jun 5 18:39 movie.mp4
Example “ls -a” to include dot files
ls -a command option
includes the listing of hidden dotfiles.
sftp> ls -a -l movies -rw-rw-r-- 0 writingteam storage 0 Jun 5 18:52 .dotfile -rw-rw-r-- 0 writingteam storage 41392 Jun 5 18:39 movie.mp4