I am connected to an sftp server using
sftp -i key.pem user@server
The server contains logs and I can list logs up to 4 days old using
ls. The problem is that ls does not seem to be able to fetch than 4 day old logs. I am wondering how can I list all the logs in the directory and get their total size?
A similar question about the size has been asked here and provides a solution using
du -hc. But this command does not exist on my sftp server neither I have ssh access. Any ideas?