want to know the folder size and also the count of total files in the folder over sftp.

Even using lfpt is fine.

I know in linux we can use du -sh for getting folder size.

1 Answer 1


I'd just use sshfs to mount the directory of interest locally, and then use the standard Linux tools as you already mentioned.

  • I tried that, but when i try du -sh it exists
    – Santhosh
    Dec 28, 2022 at 16:22
  • äh, what does exit? Could you edit your question to include what exactly you've tried. Dec 28, 2022 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .