0

I want to list files present in sftp outbox with year,month,date,hour and minute.

'ls -l --time-style=long-iso' working in other directories and giving the result as desired as below -

-rw-rw-r-- 1 abc abc 97 2021-07-30 03:51 xyz.log

but when I run above command in sftp outbox it says invalid flag -

sftp> cd outbox
sftp> ls -l --time-style=long-iso
ls: Invalid flag --
sftp>

How can I achieve the desired result in sftp outbox ?

  • `ls` in `sftp` isn't the same command as `ls` at your shell prompt, and it doesn't support the same optoins. – larsks Aug 09 '21 at 09:13

0 Answers0